Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
Re: Name resolution timeout not respected, Curl_resolver_kill() hangs.
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Mon, 15 Nov 2021 22:45:53 +0100 (CET)
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.
Date: Mon, 15 Nov 2021 22:45:53 +0100 (CET)
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.htmlReceived on 2021-11-15