cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: PATCH: Make rate-limitation logic smoother.

From: Ben Greear <greearb_at_candelatech.com>
Date: Wed, 24 Mar 2010 11:38:48 -0700

On 03/24/2010 11:17 AM, Ben Greear wrote:
> On 03/24/2010 11:10 AM, Ben Greear wrote:
>> On 03/09/2010 01:01 PM, Ben Greear wrote:
>>> The old rate-limitation logic paused for 1 second. The attached patch
>>> calculates a better timeout based on requested speed and buffer size.
>>> I believe
>>> this will give smoother rate limitation performance.
>>>
>>> Please note that at very slow speeds, you need to use small-ish buffer
>>> sizes to get good smoothing.
>>>
>>> This patch is on top of my previous patches. It fixes a few compiler
>>> warnings
>>> as well.
>>>
>>> Please let me know if it needs any improvements to make it more
>>> acceptable.
>>
>> Hello!
>>
>> I wanted to follow up to see if you had a chance to look at this patch.
>> I think this is the only one remaining (others are already committed).
>
> Errr, my apologies. It looks like it is already in the
> git tree.

I'm even lamer than I thought. I was looking in the wrong place...patch isn't
in upstream git yet.

So, here it is the patch against latest git repo. I'm off for more caffeine
right now!

Thanks,
Ben

-- 
Ben Greear <greearb_at_candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2010-03-24