On Wed, 2010-05-12 at 15:33 -0400, Brooks, Kenneth S wrote:
> In 3.1 we did this:
>
> } finally {
> if (postMethod != null) {
> postMethod.releaseConnection();
> }
> }
>
>
> I don't see anything similar to that nor do I see it called out in the
> tutorials or documentation..
> Is the release automatically handled in 4.x now?
>
Yes, it is. HttpClient handles connection release automatically as long
as any of these conditions is satisfied:
(1) response content is fully consumed
(2) an I/O error occurs
(3) request is aborted
Hope this helps
Oleg
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]