curl / Mailing Lists / curl-library / Single Mail


Re: How to Set Keep Alive Option in CURL

From: m brandenberg <>
Date: Mon, 2 Jan 2017 17:06:12 -0500 (EST)

On Mon, 2 Jan 2017, Praveen Pvs wrote:

> Am I missing something here?

I believe you are confusing TCP keepalives with HTTP keepalives.
You've enabled the former but you seek the latter.

HTTP keepalives are assumed in HTTP 1.1 and later and are
generally available once 1.1 is established and HTTP keepalive
is not disabled by headers. Servers will drop an idle connection
as a resource concern and that is exactly what your wireshark
trace shows with the server issuing an RST on the connection.

Monty Brandenberg, Software Engineer                               MCB, Inc.                                             P.O. Box 425292                                   Cambridge, MA  02142-0006
List admin:
Received on 2017-01-02