hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Becke <be...@u.washington.edu>
Subject [PATCH]Re: HTTP Post and HTTP/100 (continue)
Date Tue, 25 Feb 2003 19:16:06 GMT

> What is moreover a trouble is that the connection wasn't released after the
> failed post. Indeed as I call method.releaseConnection() and that response
> Inputstream is empty, I didn't see anything like
> HttpConnectionManager.releaseConnection:  Release connection for
> org.apache.commons.httpclient.HostConfiguration@b8332793
> after that request, whereas every other have it.

You are correct.  It seems if an error occurs in 
HttpMethodBase.execute() before the response stream is set the 
connection will not be released.  The attached patch should fix this.  I 
will go ahead and commit this one after alpha 3 if all agree.


View raw message