cURL / Mailing Lists / curl-library / Single Mail


Re: Re: CURLOPT_MAX_RECV_SPEED_LARGE for the multi interface?

From: Daniel Stenberg <>
Date: Sun, 19 Aug 2007 22:30:28 +0200 (CEST)

On Sun, 19 Aug 2007, DarkOne The Masterthief wrote:

>> The multi interface offers no such option/feature as of today, so you'd
>> either have to make it done in your application, or you need to implement
>> the feature in libcurl...
> Yes, that's the impression I had when I read the documentation. But HOW do I
> implement it? I assume the solution would have to do with calling the
> curl_multi_perform function less often, but how d5Bo I know exactly HOW less
> often?

I figure you'd simply

1. keep track of the speed
2. if it goes over the maximum you wait for a while (you of course calculate
    for how long)
3. call perform
4. goto 1

It's not perfect and not very fine-grained but it might work for you.

  Commercial curl and libcurl Technical Support:
Received on 2007-08-19