You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Rakesh Sinha <ra...@gmail.com> on 2009/04/20 16:57:22 UTC
close all active connections of httpclient at a given instant.
For a particular case where I am using a http client reference (
multi-threaded context ) and would like to close and release all the
active connections at a given instant.
I had written the code as -
getHttpClient().getHttpConnectionManager().closeIdleConnections(0L);
I am just curious what the implications of the same ( passing in 0 as
the minimum idle time for connections to be closed) . Would it close
all existing idle connections right away. Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org
Re: close all active connections of httpclient at a given instant.
Posted by Oleg Kalnichevski <ol...@apache.org>.
On Mon, Apr 20, 2009 at 10:57:22AM -0400, Rakesh Sinha wrote:
> For a particular case where I am using a http client reference (
> multi-threaded context ) and would like to close and release all the
> active connections at a given instant.
>
> I had written the code as -
>
> getHttpClient().getHttpConnectionManager().closeIdleConnections(0L);
>
> I am just curious what the implications of the same ( passing in 0 as
> the minimum idle time for connections to be closed) . Would it close
> all existing idle connections right away. Thanks.
Yes, it would.
Oleg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org