cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: [ curl-Bugs-1603712 ] curl 7.16-0 now use "limit rate" badly

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 5 Dec 2006 15:39:49 +0100 (CET)

On Mon, 27 Nov 2006, Daniel Stenberg wrote:

> I tried on Linux 2.6 and it downloaded the range fine. It didn't however
> limit the rate properly, and once I reread the source code I can see how the
> current rate limiting logic is completely flawed and just will not work.

I've written and tried the attached patch, and it seems to work for me. It
will (properly) limit the rate to be below the given average speed. I'd be
happy to get to know if it fixes the problems you see.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html

Received on 2006-12-05