hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Closing connection on failure in AutoRetryHttpClient
Date Thu, 19 Jul 2012 08:39:30 GMT
On Wed, 2012-07-18 at 21:23 -0400, Eric Fung wrote:
> I'm using release 4.2.1's AutoRetryHttpClient and trying to track down
> why my issued connections keeps going up when I have a retry strategy
> in place, and the server responds with a 503.
> From looking at the method:
> execute(HttpHost target, HttpRequest request, HttpContext context)
> it appears to me that in the for loop that implements the retry
> behaviour, the HttpResponse is not consumed if a retry should be
> attempted. On subsequent iterations, the backend creates new
> HttpResponse objects, leading to connections that are never closed.
> Am I reading this correctly?

Yes, you are. It is obviously a bug. Please raise a JIRA for this


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

View raw message