On 9/10/2017 5:33 AM, Johny Bravo via curl-library wrote:
> Did not helped. I have also tried to disable DNS cache for curl by caling
>
> curl_easy_setopt(curl, CURLOPT_DNS_CACHE_TIMEOUT, 0);
>
> but the problem is still the same.
>
> ---------- Původní e-mail ----------
> Od: Daniel Stenberg <[email protected]>
> Komu: Johny Bravo <[email protected]>
> Datum: 8. 9. 2017 23:23:49
> Předmět: Re: curl_multi_perform in background thread and HTTPS
>
>
>     On Fri, 8 Sep 2017, Johny Bravo wrote:
>
>     > But res_init is not part of CURL, so the app wont be
>     transferable to other
>     > platforms.
>
>     It would still be a functional work-around.
>
>     If res_init() helps you, then we know a whole lot more about the
>     specific
>     problem you're seeing and what possible mitigations we might have
>     to fix this
>     properly.
>
>     If it _doesn't_ help you, it similarly also tells us something
>     (although
>     probably less productive things).
>
>     But you're of course perfectly free and welcome to offer and
>     suggest a better
>     fix! 
>

Please stop top-posting, it makes the conversation harder to follow [1].
Since you are threading I suggest reading the libcurl thread safety
guidelines [2], here especially handles and CURLOPT_NOSIGNAL. Also, I
notice you didn't say what version of libcurl and what resolver. Please
try the latest release, maybe the problem you are experiencing is a bug
that has already been fixed.

[1]: https://curl.haxx.se/mail/etiquette.html#Do_Not_Top_Post
[2]: https://curl.haxx.se/libcurl/c/threadsafe.html

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to