curl-library
Re: CURLMOPT_TIMERFUNCTION
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 13 Sep 2009 16:26:52 +0200 (CEST)
Date: Sun, 13 Sep 2009 16:26:52 +0200 (CEST)
On Fri, 11 Sep 2009, Joshua Kwan wrote:
>> 3. What's the difference in behavior between timeouts of 0 and -1?
> if (milliseconds == 0) {
> /* If cURL wants to be called immediately, make it so. */
> } else if (milliseconds == -1) {
> /* If cURL doesn't specify an explicit timeout use a sane one. */
Right, this is what it means. The -1 case that removes the timeout shouldn't
even need a default "sane" one - but using one just to be safe shouldn't hurt
a lot.
-- / daniel.haxx.seReceived on 2009-09-13