cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: timeout_ms < 1000

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Thu, 13 May 2010 22:39:04 +0200

On Thursday 13 of May 2010 22:28:32 Jonathan Rom wrote:
> My guess is that if there is under 1 second remaining curl wont
> even try to resolve the host since alarm has second resolution
> (as indicated by the comment) but that is not a correct
> assumption since name resolution may take much less than a second.
>
> Is there a better solution for this?

Yes, two of them actually. You can swith the name resolver to either c-ares,
or threaded DNS resolver. What platform are you running on? Which version
of libcurl?

Kamil
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-05-13