You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Jani Mattsson <ja...@hotelzon.com> on 2003/04/17 10:30:32 UTC

RecoverableException -> connection not released from pool?

Hello!
 
I'm experiencing problems using HttpClient with
MultiThreadedHttpConnectionManager
for connections over HTTPS. For one reason or another I get
HttpRecoverableExceptions
when executing the methods, and I have code to retry a number of times after
such an
exception. Now it seems that in case a HttpRecoverableException is thrown, 
HttpMethodBase.execute() never releases the connection back to the
connection manager.
Thus when I have a quota of four connections per host, after
HttpRecoverableException my
HttpClient sits in deadlock waiting for someone to release a connection, in
vain.
 
Is this a known problem, or am I perhaps doing something wrong in the way I
retry / handle
the case when the recoverableexceptions are caught?
 
Best regards,
 
Jani Mattsson
 
 
###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.F-Secure.com/