hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aurelien Pernoud" <apern...@sopragroup.com>
Subject RE: RecoverableException -> connection not released from pool?
Date Fri, 18 Apr 2003 08:05:26 GMT

I think you're right. I've never noticed it cause I directly use HttpMethod,
but it seems that httpclient is buggy in case an exception is thrown reading
response. But as there is currently some work on such exceptions, I don't
know how it's gonna end yet :)

Jani Mattsson a écrit :

> No I am actually calling HttpClient.executeMethod(). But I don't see
> any difference, because at least in the 20030416 nightly drop the last
> line of code in HttpClient.executeMethod() is "return
> method.execute(state, connection)"
> without any enclosing try-finally blocks. Therefore as far as I
> understand there's no difference in this respect whether calling the
> method directly or through HttpClient.
>
> But in any case it feels a little strange that I have to do the
> releasing, couldn't the httpclient do that before returning to my
> calling method?
>
> Jani


Mime
View raw message