hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Mouawad <philippe.moua...@gmail.com>
Subject Re: Question about PoolingHttpClientConnectionManager#timeToLive
Date Wed, 09 Mar 2016 12:07:55 GMT
Hi Oleg,
Thanks for clarification.
Regards

On Wed, Mar 9, 2016 at 10:40 AM, Oleg Kalnichevski <olegk@apache.org> wrote:

> On Wed, 2016-03-09 at 08:40 +0100, Philippe Mouawad wrote:
> > Hello,
> > I would like a clarification on the
> > PoolingHttpClientConnectionManager#timeToLive that is used to construct
> the
> > PoolingHttpClientConnectionManager.
> >
> > In my understanding this value should not exceed the Keep Alive timeout
> > sent by a server.
> > Am I right or am I misunderstanding it ?
> >
>
> TTL represent an absolute value. No matter what the connection will not
> be re-used beyond its TTL. Keep-alive value is relative and gets updated
> every time connection is re-used.
>

Do you want me to open a JIRA  +PR to add this to documentation ?

>
> > I think it should be better documented
> >
> >
> > Also another question about the call of this in the constructor:
> > this.pool.setValidateAfterInactivity(2000);
> >
> > Why isn't this value exposed to configuration ?
> > Am I wrong to think that it should be < Time to live in millis ?
> >
>
> No you are not. If the stale check time is greater than TTL it will
> simply have no effect.
>

Ok. clear

>
> Oleg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>


-- 
Cordialement.
Philippe Mouawad.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message