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 11:56:41 +0400

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)

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

>
> On Apr 10, 2014 11:09 AM, "truefiresnake" <truefiresnake_at_gmail.com> wrote:
> >
> > Iíve builded curl for iOS with this script https://github.com/JohnPoison/cURL-SSL-for-iOS/blob/master/cURL/build-libcurl.sh Iíve added option --enable-threaded-resolver to prevent my app from crashing when curl_resolv_timeout occurs. But that didnít help and Iím still getting crashes (btw crash is in main thread) http://monosnap.com/image/DBtQ4XgSiLfVFPt52IBNscnPYzA5Uv . How can I solve this problem?
>
> This usually happens in multithreaded applications when you don't call curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1L).
>
> Disclaimer: I have zero experience with iOS development.
>
> >
> > -------------------------------------------------------------------
> > 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

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-04-11