Re: Problems with curl timeout setting
Daniel Stenberg <[email protected]> Mon, 24 Jan 2011 19:52:51 +0100 (CET)
| Newsgroups | gmane.comp.web.curl.php |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 24 Jan 2011, [email protected] wrote: > timeout is set at 2000ms, php returns the following > > $inf['total_time']=1.97 > $inf['connect_time']=0.04 > $inf['namelookup_time']=0.00 > > Operation timed out after 2974 milliseconds with 0 out of -1 bytes received| > > which is close to 3s, why is that? You've reached the end of my road here. If you can repeat that in a C program using libcurl, or the curl command line tool, then I'd be interested in looking into it. I'm not a PHP guy and I don't want to debug libcurl through it. It is also relevant what resolver you're using, as if you use the stock *nix resolver, it has a full-second resolution in the time-outs. -- / daniel.haxx.se _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php