cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re:Re: curl timeout and system alarm

From: dong <ilovedxq_at_163.com>
Date: Sat, 22 Aug 2015 10:33:43 +0800 (CST)

I try libcurl 7.44.0. The problem is the same as before.
Another problem, sometimes it's spend 10 mins or more for libcurl timeout, but i set curl_easy_setopt(curl, CURLOPT_TIMEOUT, 120), the whole timeout is 120 sec. I don't know why?

At 2015-08-20 20:51:59,"Daniel Stenberg" <daniel_at_haxx.se> wrote:
>On Thu, 20 Aug 2015, dong wrote:
>
>> I use libcurl 7.24.0. I set curl in a thread like this:
>
>> Sometimes, i got "curl_easy_perform() failed: Timeout was reached. " from
>> libcurl, and submit data to server failed. But in fact, the sever get the
>> data, i don't know why. Any suggestions?
>
>libcurl itself uses SIGALRM to timeout slow DNS resolves when built to use the
>stock resolver but it makes an effort to put the old value back after it is
>done, so no I can't really explain that behavior.
>
>Could be worth trying a newer libcurl version to see if the problem is still
>in there!
>
>--
>
> / daniel.haxx.se
>-------------------------------------------------------------------
>List admin: http://cool.haxx.se/list/listinfo/curl-library
>Etiquette: http://curl.haxx.se/mail/etiquette.html

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-08-22