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

Thanks!

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/1.2.3.3 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: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to