curl-library
Re: DNS timeouts..
Date: Thu, 17 Jun 2010 15:42:16 +0200 (CEST)
On Tue, 15 Jun 2010, Ramkumar Ganapathy wrote:
> I am using libcurl with c on linux. I set CURLOPT_NOSIGNAL, option to make
> sure that my application do not receive signals. I have not linked to c-ares
> library.
>
> Hence as per documentation, I expected the DNS look up to keep going on,
> blocking my application thread, after I configured my DNS to drop all the
> address resolution request. But, after about 50 seconds, the curl oepration
> timesout with DNS resoultion error (curl code 6). Is this an expected
> behavior even when c-ares is not installed?
In your case, libcurl uses the standard name resolve functions and when they
return failure, libcurl returns CURLE_COULDNT_RESOLVE_HOST. If that happens
after 50 seconds, then so be it.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-06-17