hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rakesh Sinha <rakesh.use...@gmail.com>
Subject close all active connections of httpclient at a given instant.
Date Mon, 20 Apr 2009 14:57:22 GMT
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


Mime
View raw message