Teiid JDBC Driver SocketPing can not disable
--------------------------------------------
Key: TEIID-3852
URL:
https://issues.jboss.org/browse/TEIID-3852
Project: Teiid
Issue Type: Quality Risk
Components: JDBC Driver
Affects Versions: 9.x
Reporter: Kylin Soong
Assignee: Kylin Soong
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_:
{code}
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());
}
{code}
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?