hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Köll <...@newbase.de>
Subject Stale connection checking broken in 3.0 beta 1
Date Wed, 05 Jan 2005 14:46:06 GMT

today i tried to upgrade from 3.0a1 to 3.0b1 and ran into problems with 
stale connections throwing SocketExceptions on me (which did not happen 
  with alpha 1).

I think the problem for this can be found in HttpConnection:

   public boolean closeIfStale() throws IOException {
     if (used && isOpen && isStale()) {
       LOG.debug("Connection is stale, closing...");
       return true;
     return false;

staleness is only checked if used = true, but there is no code in 
HttpConnection that sets the used flag. In other words: used is always 
false and isStale() is never called.

Cheers, Oliver

To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org

View raw message