cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Throttling Curl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 28 May 2002 00:03:06 +0200 (MET DST)

On Mon, 27 May 2002, Stuart Halliday wrote:

> Is there someway to have a switch added to Curl so that instead of it
> trying to claim all the available bandwidth a switch limits it to X
> KBytes/sec?
>
> As a Sysadmin I often have to download large files but I'd like to leave
> some bandwidth for others on my Works 128K ISDN network.
>
> Would others find this feature useful?

It is in the TODO file, and I would indeed like to see the feature added.

It should probably be implmented entirely in client-side code (I mean outside
the library) and it could make the callback functions sleep a certain period
before returning back to the library.

You up to writing a patch for this?

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
Received on 2002-05-28