curl-library
Re: Running Handles not becoming 0
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 27 Aug 2009 19:47:47 +0200 (CEST)
Date: Thu, 27 Aug 2009 19:47:47 +0200 (CEST)
On Wed, 26 Aug 2009, Shivanand wrote:
> CURLOPT_LOW_SPEED_LIMIT = 0
> But for scenario 1, the connection never terminates for the above server.
> running handles never become 0. If I increase the CURLOPT_LOW_SPEED_LIMIT =
> 1 then the connection terminates in 20 seconds. I am running my client
> application on windows.
>
> Please let me know the reason for such behaviour. Is CURLOPT_LOW_SPEED_LIMIT
> = 0 a wrong option for curl easy handle that resides in multi handle stack?
I think that's because the check in the code does the equivalent of:
if(current_speed < low_speed_limit)
So thus it won't be below 0, but it will be below 1, during 20 seconds.
see lib/speedcheck.c:Curl_speedcheck() for details.
-- / daniel.haxx.seReceived on 2009-08-27