curl / Mailing Lists / curl-library / Single Mail


RE: Multi CURL - persistent connection issue

From: Erik Janssen <>
Date: Tue, 29 May 2018 16:19:47 +0000

The server might be of questionable nature, looking at its identification
Are you sure there is payload on the wire? Do you get data when you try the same request with the commandline curl?


From: curl-library [] On Behalf Of Suganthi
Sent: dinsdag 29 mei 2018 17:23
Subject: Multi CURL - persistent connection issue

Hi all ,

Would like to have inputs on debugging an issue with multi curl .

Our application is as below : Client is using HTTP 1.1 and server is on HTTP 1.0 .
Client is using multi interface and server sends "Connection : keep-alive" header to have persistent connection.

However after receiving response from server, following message is seen :

< Server: BaseHTTP/0.3 Python/2.7.12
< Date: Tue, 29 May 2018 03:50:01 GMT
* Marked for [keep alive]: Connection keep-alive
* HTTP/1.0 connection set to keep alive!
< Connection: keep-alive
* Operation timed out after 20003 milliseconds with 0 bytes received
* Marked for [closure]: Disconnected with pending data
* Curl_done
* Closing connection 2
* The cache now contains 0 members

CURL timesout and does not move to COMPLETED state and application does not receive CURLMSG_DONE. Our application waits for CURLMSG_DONE from libcurl to know perform is done.

Any leads would be highly appreciated.


Received on 2018-05-29