On Mon, 15 Nov 2021, Woody via curl-library wrote:

It takes one second to give the timeout error, but it waits then 11 seconds
to return control.

I debugged into the curl-library and I discovered that when
multi_handle_timeout() detects a timeout, it calls the Curl_resolver_kill().

The Curl_resolver_kill() awaits then 11 seconds for Curl_thread_join().

I believe this is the same issue mentioned here:

https://curl.se/docs/knownbugs.html#Multi_perform_hangs_waiting_for

... I think we should consider providing a way for libcurl to *not* wait for that final thread and continue anyway and that way avoid this "hang" - even if that then also risks causing a memory leak.

--

 / daniel.haxx.se
 | Commercial curl support up to 24x7 is available!
 | Private help, bug fixes, support, ports, new features
 | https://curl.se/support.html
--
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to