Re: CURL_TIMEOUT_RESOLVE disappeared from recent curl?
Michael Dowling <[email protected]> Fri, 18 Feb 2011 09:21:43 -0600
| Newsgroups | gmane.comp.web.curl.php |
|---|---|
| Message-ID | <[email protected]> |
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, [email protected] 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