curl-library
Re: How to Set Keep Alive Option in CURL
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 2 Jan 2017 21:27:19 +0100 (CET)
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.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2017-01-02