curl-and-php
Re: CURL_TIMEOUT_RESOLVE disappeared from recent curl?
Date: Fri, 18 Feb 2011 09:21:43 -0600
I don't see an option for DNS resolve timeouts in the PHP docs or the
libcurl docs, but you can use CURLOPT_CONNECTTIMEOUT to limit the amount
of time in seconds to allow for the connection phase to the server. I
think that should include DNS resolving.
More information on this option is available at
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html
-Michael
On 2/18/11 9:11 AM, 127546_at_sms13.de wrote:
> Hello
>
> not sure if I am dreaming but there was such option, now it's gone?
> I need to set timeout for dns resolve, curl sometimes wait for 20+ seconds to resolve a domain that
> does not exist
>
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2011-02-18