cURL / Mailing Lists / curl-library / Single Mail


Re: libcurl + libevent2: Stalling if no data is received/written

From: Bas Verhoeven <>
Date: Sun, 22 Aug 2010 13:11:47 +0200

Dirk Manske wrote:
> On Friday 20 August 2010 18:37:55 Bas Verhoeven wrote:
>> I'm kinda new in the curl world
> Welcome!


>> Is there any way I can force it to check for timeouts?
> Simply set a time-out with curl_easy_setopt.
> e.g. in hiperfifo.c insert
> curl_easy_setopt(conn->easy, CURLOPT_TIMEOUT, 5);
> before line 344 and you'll get a nice working 5 second timeout.
> But you need curl >=7.21.1 which fixed the famous bug 62.

I tried that but not much seems to change. I'm running "libcurl/7.21.1
OpenSSL/0.9.8g zlib/ c-ares/1.5.2 libidn/1.8 libssh2/0.18",
freshly compiled from source.

No matter what I try tho, it seems to keep the connection open still,
even tho no data has been received for more than 5 seconds. Only if I
start writing data through the "listener" libcurl seems to notice that a
timeout occurs and then shuts down the socket with a message like
"Operation timed out after 155007 milliseconds with 0 bytes received".

Any suggestions?
List admin:
Received on 2010-08-22