> > I noticed that there are two errors related to DNS resolution in libcurl
> >
> > 1.  "Resolving timed out after <number> milliseconds" (snip)
> > 2.  "Could not resolve host: <hostname>" (snip)
> >     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.
> >
>
> I'd assume (1) is used if the DNS server does not respond at all within the 
> timeout and (2) is used if the DNS server responds with something like "I 
> don't know this name" or "I don't have an IP address for this name".
>
> The contents of this e-mail are intended for the named addressee only. It 
> contains information that may be confidential. Unless you are the named 
> addressee or an authorized designee, you may not copy or use it, or disclose 
> it to anyone else. If you received it in error please notify us immediately 
> and then destroy it. Dynatrace Austria GmbH (registration number FN 91482h) 
> is a company registered in Linz whose registered office is at 4020 Linz, 
> Austria, Am Fünfundzwanziger Turm 20


Also, with (1) I see that when CURLOPT_CONNECTTIMEOUT was set to 10 seconds, 
and curl logs "Resolving timed out after 10001 milliseconds", 
CURLINFO_TOTAL_TIME reports more time, like 15 or 20 seconds, Is this normal? 
This is with the easy interface and libcurl 7.64.1



-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to