cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: speed limit / speed time / limit rate

From: David Byron <DByron_at_everdreamcorp.com>
Date: Thu, 19 Feb 2004 15:03:56 -0800

On Thu, 19 Feb 2004, Daniel Stenberg wrote:

> What about the basic concept though?
>
> It is good enough to me.

OK.

> Yes, it will make the behaviour different. Perhaps we could
> try some different mathematics than simply using speed-time - 1...

Yes, this is totally made up. low_speed_time / 2 came to mind as well. I'm
certainly open to suggestions here.

> > Trouble is, the better thing probably means moving the
> > --limit-rate into libcurl so we can teach the speed limit
> > code when curl is sleeping to limit bandwidth. If the speed
> > limit code was aware of that, we could make sure it didn't
> > fire because of the sleeping.
>
> Right. But I don't see this happening in the nearest future,
> so this could be a fix until that day comes.

The voice of reason. A corrected patch that deals with the
no-speed-limit-specified case to come as soon as my tests complete.

Thanks much.

-DB
Received on 2004-02-20