curl-library
Re: curl timeout and system alarm
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 20 Aug 2015 14:51:59 +0200 (CEST)
Date: Thu, 20 Aug 2015 14:51:59 +0200 (CEST)
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.htmlReceived on 2015-08-20