cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Wrong behavior when activate the LOW_SPEED_LIMIT and LOW_SPEED_TIME

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 21 Sep 2012 22:23:25 +0200 (CEST)

On Thu, 20 Sep 2012, Jie He wrote:

> set option CURLOPT_MAX_RECV_SPEED_LARGE to 1024L
> set option CURLOPT_LOW_SPEED_LIMIT 1L
> set option CURLOPT_LOW_SPEED_TIME n mins
>
> MUST limit the receive rate to 1k first. the behavior occurs only when the
> receive rate is very low. during 5 seconds, the members of speeder array
> have same value.

I modified my test code now to use:

     curl_easy_setopt(curl, CURLOPT_URL, "http://localhost/big/4200big");
     curl_easy_setopt(curl, CURLOPT_MAX_RECV_SPEED_LARGE, (curl_off_t)
                      1024);
     curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, 1L);
     curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, (long)60);
     curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L);

... works just as fine as before...

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-09-21