cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Wrong behavior when activate the LOW_SPEED_LIMIT and LOW_SPEED_TIME

From: Jie He <jie.he.cn_at_gmail.com>
Date: Sat, 22 Sep 2012 17:10:30 +0800

I forgot, I'm using multi interface to download.

I don't know if there is different between two interfaces.

2012/9/22 Daniel Stenberg <daniel_at_haxx.se>

> 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<http://cool.haxx.se/list/listinfo/curl-library>
> Etiquette: http://curl.haxx.se/mail/**etiquette.html<http://curl.haxx.se/mail/etiquette.html>
>

-- 
Best Regards
He Jie ºÎ½Ü

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