curl-library
Re: CURLOPT_TIMEOUT
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 7 Nov 2007 13:56:43 +0100 (CET)
Date: Wed, 7 Nov 2007 13:56:43 +0100 (CET)
On Wed, 7 Nov 2007, nf2 wrote:
> curl_easy_setopt_or_die(easy, CURLOPT_LOW_SPEED_LIMIT, (long)1);
> curl_easy_setopt_or_die(easy, CURLOPT_LOW_SPEED_TIME, (long)60);
>
> doesn't cancel the connection in my case.
>
> are the speed checking functions called when there is absolutely no traffic
> on a socket? because the only function which is called regularly is
> curl_multi_fdset() in that case.
Eh, no in that situation the speed checks aren't done since you're not calling
any perform function.
OTOH, when you use the multi interface you have full control yourself and can
decide exactly when to stop based on your own heuristics.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-11-07