[teiid-issues] [JBoss JIRA] (TEIID-3852) Teiid JDBC Driver SocketPing can not disable

Kylin Soong (JIRA) issues at jboss.org
Thu Dec 3 23:53:00 EST 2015


     [ https://issues.jboss.org/browse/TEIID-3852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kylin Soong updated TEIID-3852:
-------------------------------
    Description: 
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?

  was:
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() exeist, but it never be invoked, so I think whether we can add some logic that let JDBC Driver has ability to disable SocketPing?



> 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
>             Fix For: 9.x
>
>
> 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?



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the teiid-issues mailing list