cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_TIMEOUT

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 5 Nov 2007 09:43:03 +0100 (CET)

On Mon, 5 Nov 2007, nf2 wrote:

> i don't really understand the documentation of CURLOPT_TIMEOUT: "the maximum
> time in seconds that you allow the libcurl transfer operation to take". this
> sounds like the timeout always cancels the operation, no matter if there is
> traffic on the data connection or not.

That's correct.

> i only need a timeout when a download/upload "hangs" for a certain time (no
> traffic on the connection).

Then you probably want CURLOPT_LOW_SPEED_LIMIT and CURLOPT_LOW_SPEED_TIME, or
you make your own with the progress callback.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-11-05