cURL / Mailing Lists / curl-library / Single Mail



From: nf2 <>
Date: Sun, 11 Nov 2007 22:42:32 +0100

Daniel Stenberg wrote:
> 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.

Hmm... I believe optimally libcurl-multi would have a GSource style
design by providing prepare/check/dispatch functions:

With this design the application has better means to find out when/if
it's time to call perform().
Received on 2007-11-11