curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to Set Keep Alive Option in CURL

From: Praveen Pvs <meetpraveenpvs_at_gmail.com>
Date: Wed, 4 Jan 2017 20:29:00 +0530

On Tue, Jan 3, 2017 at 1:57 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Mon, 2 Jan 2017, Praveen Pvs wrote:
>
> We wanted to use Keep Alove Options in CURL so that it keeps the
>> connection with the server open and avoid performing SSL handshake too
>> often since SSL handshake is consuming time
>>
>
> As Ray indicated: the only way to really make servers keep connections
> alive is to *use* that connection for a request. Setting keep-alive timers
> won't help you with that, the servers will kill idle connections after a
> timeout independendent of TCP keepalive options.
>
> I am under the impression that keep alive feature will maintain that
connection by sending keep alive probes at regular intervals. Is it not the
case?. I am using the same curl handle which was created for the first
connection without cleaning it

> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: https://cool.haxx.se/list/listinfo/curl-library
> Etiquette: https://curl.haxx.se/mail/etiquette.html

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-01-04