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: Feature request: provide ability to set a global callback function telling libcurl if IPv6 works on the system

From: Daniel Stenberg via curl-library <>
Date: Wed, 21 Sep 2022 08:32:16 +0200 (CEST)

On Tue, 20 Sep 2022, Dan Fandrich via curl-library wrote:

> How doesn't setting CURLOPT_IPRESOLVE fix this? Is it because
> Curl_ipv6works() is being called somewhere anyway, and it adds a 30 msec
> delay? So, if libcurl eliminated that call in the CURL_IPRESOLVE_V4 case,
> would it fix your problem?

Yes. It sounds like we should be able to fix this by "lazily" do the check
first when it is actually necessary to know. If set to CURL_IPRESOLVE_V4
there's no need to know.

  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
Received on 2022-09-21