Mike, Any idea why closed connection is considered stale?

<snip> protected boolean isStale() { boolean isStale = true; if
(isOpen) { // the connection is open, but now we have to see if we
can read it // assume the connection is not stale. isStale = false; </snip>

It's just poor logging.

    public boolean isOpen() {
        if (used && isStaleCheckingEnabled() && isStale()) {
            LOG.debug("Connection is stale, closing...");
            close();
        }
        return isOpen;
    }

isOpen() does not differentiate between stale and closed. If the connection is closed isStale() will return true. In the case at hand it appears that the connections are actually closed, but the logging makes that unclear.

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to