cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Adding A Speed limiting feature

From: Andrew Francis <locust_at_familyhealth.com.au>
Date: Tue, 30 Oct 2001 10:05:05 +0800

"Ben Greear" <greearb_at_candelatech.com> wrote:
> >
> > +======+ +=============+ +==========+
> > | curl | ---> | gzip filter | ----> | callback |
> > +======+ +=============+ +==========+
>
> It isn't great because the only way to slow this down is to pause
> the entire program (or thread). I prefer to do other work while I'm
> waiting for long enough that it makes sense to send data at whatever
> speed you want. For simple tools, I like having Curl run the main
loop
> and making it's use very easy. However, for more advanced tools,
> the library cannot control the main loop and should be driver more
> explicitly from the outside.....

I agree... when/if filters are implemented, I'd like to see them work
with both the traditional callbacks, and the newer "advanced API".

--
Andrew Francis
locust_at_familyhealth.com.au
Received on 2001-10-30