curl / Mailing Lists / curl-library / Single Mail
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.

From: Daniel Stenberg via curl-library <>
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:

... 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.

  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
Received on 2021-11-15