Re: Problems with curl timeout setting
Daniel Stenberg <[email protected]> Thu, 27 Jan 2011 15:43:44 +0100 (CET)
| Newsgroups | gmane.comp.web.curl.php |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 27 Jan 2011, Daniel Stenberg wrote: > Yes. We can probably just edit one of the examples (like this: > http://curl.haxx.se/libcurl/c/multi-single.html) with the added timeout > values and use against 'nc' to see that it times out accurately. I just did, and when connecting to nc on a given port it actually timed out exactly on the given millisecond: * Operation timed out after 2995 milliseconds with 0 out of -1 bytes received So I guess this is not repeating your case closely enough. Do you know what libcurl does at the moment it times out? I mean has it connected to the remote port already, is it still connecting or is it waiting for data? -- / daniel.haxx.se _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php