if (conn.isOpen() && !conn.isStale()) {
if (log.isDebugEnabled()) {
log.debug("A connection to host : " + host + " on port : " +
port + " is available in the pool, and will be reused");
}
conn.requestInput(); // asankha - make sure keep alives work properly when reused with throttling
return conn;
} else {
if (log.isDebugEnabled()) {
log.debug("closing stale connection to : " + host + ":" + port);
}