cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl speed-limit problem

From: Robert Iakobashvili <coroberti_at_gmail.com>
Date: Mon, 23 Jul 2007 13:24:31 +0300

Hi Asmvc,

On 7/23/07, asmvc <asmvc_at_163.com> wrote:
> i use libcurl to download http file and found some problem when i set
> download speed limit.
> i set the max-speed = 100k but no effect

> curl_easy_setopt(hnd, CURLOPT_LOW_SPEED_LIMIT, 0);
> curl_easy_setopt(hnd, CURLOPT_LOW_SPEED_TIME, 0);
> curl_easy_setopt(hnd, CURLOPT_MAX_SEND_SPEED_LARGE, (curl_off_t)LIMIT);
> curl_easy_setopt(hnd, CURLOPT_MAX_RECV_SPEED_LARGE, (curl_off_t)LIMIT);

We have seen such problem on linux, which
was resolved by compiling our application with
-D_FILE_OFFSET_BITS=64
In general curl_off_t type is the source of possible issues. Fire your debugger.

Take care.

-- 
Sincerely,
Robert Iakobashvili,
coroberti %x40 gmail %x2e com
...........................................................
http://curl-loader.sourceforge.net
A web testing and traffic generation tool.
Received on 2007-07-23