cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_failf causes crash with --enable-threaded-resolver

From: truefiresnake <truefiresnake_at_gmail.com>
Date: Fri, 11 Apr 2014 21:31:50 +0400

On 11 Apr 2014, at 20:59, Dave Reisner <d_at_falconindy.com> wrote:

> On Fri, Apr 11, 2014 at 11:56:41AM +0400, truefiresnake wrote:
>> Dave, If I set CURLOPT_NOSIGNAL to 1 then my queries can totally stuck (without
>> timeout), am I right? Iím trying to avoid this case. Documentation says I can
>> use threaded resolver in such case and it should be thread safe. Also thereís
>> alternative to use c-ares (which i also want to avoid, I donít want another one
>> library in my project)
>
> Please don't top post.
>
> No, this isn't the case. curl is non-blocking, so signals are never used
> for timeouts (e.g. alarm(2)).
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html

Sorry for top-posting.

So does this mean that I can use curl with CURLOPT_NOSIGNAL = 1 in background threads without any problems?
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-04-11