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 Idel Connections
Date Tue, 21 Feb 2012 20:16:13 GMT
On Tue, 2012-02-21 at 14:56 -0500, Chad La Joie wrote:
> Both HttpClient v3 and v4 have the "issue" where the sockets of
> connections released back to pooling connection managers are moved to
> a CLOSE_WAIT state in case they are to be used again for some other
> request to the same host.  I know that the following methods can be
> used to close out idle connections programmatically:
> v3 - HttpConnectionManager#closeIdleConnections(long)
> v4 - ClientConnectionManager#closeIdleConnections(long, TimeUnit)
> 
> Do either of the v3 or v4 pooling connection managers support closing
> down idle after an elapsed period of disuse?  If so, how does one
> enable that?  I wasn't able to find any settings in the docs that I
> thought were related so I'm guessing the answer to my first question
> is "no".
> 

Please see

http://hc.apache.org/httpcomponents-client-dev/tutorial/html/connmgmt.html#d5e647

Oleg


---------------------------------------------------------------------
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