curl-users
Re: CURLOPT_MAX_RECV_SPEED_LARGE still not limiting bandwidth?
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 29 Jan 2008 12:35:24 +0100 (CET)
Date: Tue, 29 Jan 2008 12:35:24 +0100 (CET)
On Tue, 29 Jan 2008, Mark Hindley wrote:
> I am the maintainer of the debian apt-cacher package. I have recently
> changed apt-cacher to use curl via the perl bindings.
Since you're a libcurl user, I'd advice you to use the curl-library list
instead of curl-users...
> I am setting
>
> $curl->setopt(CURLOPT_MAX_RECV_SPEED_LARGE, $maxspeed);
>
> where $maxspeed is an integer and then using the $curl handle later. Is that
> correct?
'integer' as in a plain int in a 32bit system? That sounds like a wrong thing
to do, since the library assumes a curl_off_t sized input and for most modern
systems that is a 64bit type...
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2008-01-29