cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Wrong behavior when activate the LOW_SPEED_LIMIT and LOW_SPEED_TIME

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 24 Sep 2012 06:37:49 +0200

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
Received on 2012-09-24