: I am not sure if current version has this, but  DIH used to reload
: connections after some idle time
: 
: if (currTime - connLastUsed > CONN_TIME_OUT) {
:                       synchronized (this) {
:                               Connection tmpConn = factory.call();
:                               closeConnection();
:                               connLastUsed = System.currentTimeMillis();
:                               return conn = tmpConn;
:                       }
: 
: 
: Where CONN_TIME_OUT = 10 seconds

...oh wow.  i saw the CONN_TIME_OUT constant but i thought (foolishly 
evidently) that CONN was "connect" as it a timeout on creating a 
connection, not a timeout on how long DIH is willing ot use a perfectly 
good connection.

I honestly can't make heads or tails of why that code would exist.

Noble? Shalin?  what's the point of throwing away a connection that's been 
in use for more then 10 seconds?



-Hoss

Reply via email to