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.

Different errors for DNS resolution

From: Tejas via curl-library <curl-library_at_cool.haxx.se>
Date: Thu, 04 Feb 2021 09:17:48 +0000

Hello,

I noticed that there are two errors related to DNS resolution in libcurl

1. "Resolving timed out after <number> milliseconds" - https://github.com/curl/curl/blob/1dc8aa870e879d3b2ff0334cdb11842d6321d61f/lib/multi.c#L1602
2. "Could not resolve host: <hostname>" - Maybe this file https://github.com/curl/curl/blob/44c9e18e5fdcc9367c5d04c762d2082382ab5f1e/lib/asyn-thread.c#L509

What is the the difference between both of them?
During failure, the first one seems to depend on (connect?) timeout and the second one is more or less instant.


-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html
Received on 2021-02-04