curl-library
Re: timeout in milliseconds doesn't seem to work
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 4 May 2009 10:28:28 +0200 (CEST)
Date: Mon, 4 May 2009 10:28:28 +0200 (CEST)
On Fri, 1 May 2009, Paul Dix wrote:
> curl_easy_setopt(easy_handle, 155, 500); // for say 500 ms timeout.
> where 155 is the CURLOPT_TIMEOUT_MS value
Why on earth would you use 155 and not CURLOPT_TIMEOUT_MS ?
> What I'm finding is that it automatically rounds up to the nearest second.
> So it's really only doing full second timeouts. So a ms value of 1001 would
> actually do timeouts at 2 seconds. I saw that I need to have it built with
> c-ares and based on the version returned by curl_version, I think I do.
If that's really the case it seems like a bug somewhere. Can you post us a
full example that we can try with?
-- / daniel.haxx.seReceived on 2009-05-04