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.se

Reply via email to