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: Pooling constructor
Date Mon, 12 Oct 2015 07:50:55 GMT
On Sun, 2015-10-11 at 15:43 -0700, Vic Cekvenich wrote:
> Hi,
> Looking at
> https://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/impl/conn/PoolingHttpClientConnectionManager.html
> 
> it seems that
>  new PoolingHttpClientConnectionManager(1,TimeUnit.MINUTE);
> will close connection in that time (to refresh it)
> and
> setValidateAfterInactivity(1);
> will check stale.
> 
> Is this correct?

The former defines total time to live (no matter what connection will be
kept alive past its TTL value), the latter forces connection validation
after a period of inactivity.

Oleg

> Or are they both stale checks?
> 
> Vic



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