curl-library
Re: Why alter curl_multi_timeout() return value?
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 2 May 2011 09:42:34 +0200 (CEST)
Date: Mon, 2 May 2011 09:42:34 +0200 (CEST)
On Sun, 1 May 2011, Paul J. Lucas wrote:
> The fopen.c example code contains:
>
> Why is tv_sec clipped to 1 second? Why isn't the value returned by
> curl_multi_timeout() used as-is (after dividing by 1000)?
>
> Assuming there's a good reason for the above, then is there a case when you
> would NOT clip the value to 1 second? What case is that?
I believe we once upon the time may have had a good reason for it, but unless
you want to do some updates or local logic of your own, like a progress meter
or similar, there should be no need to cap the timeout value libcurl returns.
We should probably remove that logic from the examples that do it.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-05-02