Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-3852

Teiid JDBC Driver SocketPing can not disable

XMLWordPrintable

    • Icon: Quality Risk Quality Risk
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 9.x
    • JDBC Driver
    • None

      Today I debug client code have found that JDBC Driver SocketPing can not be disabled, there are some logic hints SocketPing should be configurable, but it seems not completed, some logic snippets in org.teiid.net.socket.SocketServerConnectionFactory:

      private boolean disablePing;
      
      public void setDisablePing(boolean disable) {
      	this.disablePing = disable;
      }
      
      public void initialize(Properties info){
      ...
      if (disablePing){
          return;
      }
      
      this.pingTimer = new Timer("SocketPing", true);
      this.pingTimer.schedule(new TimerTask());
      }
      

      Note that, even the setDisablePing() exist, but it never be invoked, so I think whether we can add some logic that let JDBC Driver has ability to disable SocketPing?

            kylinsoong.1214@gmail.com Kylin Soong (Inactive)
            kylinsoong.1214@gmail.com Kylin Soong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: