hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastiano Vigna <vi...@di.unimi.it>
Subject Re: When does a connection get closed when using a DefaultConnectionReuseStrategy?
Date Thu, 14 Nov 2013 18:48:59 GMT
On 13 Nov 2013, at 5:38 PM, Oleg Kalnichevski <olegk@apache.org> wrote:

>> 
>> How can we be sure that the TCP connection with a host is shut down immediately,
after we finish our batch of consecutive fetches?
>> 
> 
> NHttpClientConnectionManager#closeIdleConnections(
> 0, TimeUnit.MILLISECONDS)
> 
> is what you want.


Now, just out of curiosity and because I coulnd't follow the code: when does the (default)
connection manager decide that a particular connection is idle? When we switch to another
host?

Ciao,

					seba


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