curl / Mailing Lists / curl-library / Single Mail


Re: How to Set Keep Alive Option in CURL

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

On Tue, Jan 3, 2017 at 1:57 AM, Daniel Stenberg <> 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

> --
> /
> -------------------------------------------------------------------
> List admin:
> Etiquette:

List admin:
Received on 2017-01-04