hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Boorshtein <mboorsht...@gmail.com>
Subject Re: How to enable and configure TCP KeepAlive
Date Thu, 26 Mar 2015 10:50:35 GMT
Perfect, thanks Oleg.

On Thu, Mar 26, 2015 at 6:36 AM, Oleg Kalnichevski <olegk@apache.org> wrote:

> On Thu, 2015-03-26 at 06:25 -0400, Marc Boorshtein wrote:
> > Thanks Oleg, how do I enable SO_KEEPALIVE with HttpClient?
> >
>
> Please use SocketConfig
>
> Oleg
>
> > Thanks
> > Marc
> >
> > On Thu, Mar 26, 2015 at 6:14 AM, Oleg Kalnichevski <olegk@apache.org>
> wrote:
> >
> > > On Wed, 2015-03-25 at 15:17 -0400, Marc Boorshtein wrote:
> > > > I'm trying to configure TCP KeepAlice using apache httpclient 4.3.4
> and
> > > am
> > > > trying to figure out the correct parameters to the connection.  When
> > > > running my builder, if I set staleConnectionCheckEnabled to true and
> the
> > > > socketTimeout will it enable TCP keepalive and set it to a specific
> time?
> > > >
> > >
> > > No, it will not. Stale connection check and SO_KEEPALIVE are unrelated.
> > >
> > > Oleg
> > >
> > > > Thanks
> > > > Marc
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> > > For additional commands, e-mail: httpclient-users-help@hc.apache.org
> > >
> > >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>

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