curl / Mailing Lists / curl-library / Single Mail

curl-library

RE: Curl and c-ares block during curl_multi_remove_handle

From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Sat, 17 Nov 2018 11:41:33 +0100 (CET)

On Wed, 14 Nov 2018, Evgen Bodunov via curl-library wrote:

> By now I’m fixed an issue by adding

> curl_easy_setopt(task->getCurl(), CURLOPT_TIMEOUT_MS, 1); // 1 ms, because 0
> means no value set, and -1 is invalid

> Before
> curl_multi_remove_handle(_multi, task->getCurl());
>
> But I believe curl should take care on cancelling active easy handler
> somewhere inside curl_multi_remove_handle. May be I’m wrong.

Have you figured out exactly which function in libcurl that waits if you don't
do this?

-- 
  / daniel.haxx.se

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-11-17