curl / Mailing Lists / curl-library / Single Mail


Re: How to Set Keep Alive Option in CURL

From: Daniel Stenberg <>
Date: Mon, 2 Jan 2017 21:27:19 +0100 (CET)

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.

List admin:
Received on 2017-01-02