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: Mon, 24 Sep 2012 12:53:36 +0800

yes, in my project, I used the correct data type.

just here, the sample, I did that just for convenience;

2012/9/24 Dan Fandrich <dan_at_coneharvesters.com>

> On Mon, Sep 24, 2012 at 11:31:07AM +0800, Jie He wrote:
> > curl_easy_setopt(handle_curl, CURLOPT_MAX_RECV_SPEED_LARGE, 1024);
> > curl_easy_setopt(handle_curl, CURLOPT_FOLLOWLOCATION, 1L);
> > curl_easy_setopt(handle_curl, CURLOPT_LOW_SPEED_LIMIT, 1);
> > curl_easy_setopt(handle_curl, CURLOPT_LOW_SPEED_TIME, 60);
>
> Note that these are using the wrong types. CURLOPT_MAX_RECV_SPEED_LARGE
> expects a curl_off_t, while CURLOPT_LOW_SPEED_LIMIT and
> CURLOPT_LOW_SPEED_TIME
> expect long arguments.
>
> >>> Dan
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: 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-24