curl-users
Re: UNSURE: Re: CURLOPT_MAX_RECV_SPEED_LARGE still not limiting bandwidth?
Date: Tue, 29 Jan 2008 11:42:06 +0000
On Tue, Jan 29, 2008 at 12:35:24PM +0100, Daniel Stenberg wrote:
> 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...
Thanks, I'll try that too
>
>> 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...
Yes, but it is perl, which doesn't type in the same way as C. Actually
$maxspeed is a perl scalar. Does that suggest I need to look at the
perl<->libcurl binding to check this?
Mark
Received on 2008-01-29