[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

bwlimit or throttle in WEBrick?

Magnus Bodin

3/28/2005 8:01:00 PM


I'm in the middle of writing a P2P tool with openssl+WEBrick. A lot of
things are supported out of the box, but one thing I miss is throttling
or some way to limit/cap the bandwidth.

For the client part, I can do good enough things with Net::HTTP, ranges and
pauses. For the server part I want to something too.

As webrick has no throttling capacity of its own I started to dig the
archives and found 'bwlimit' as a dead and lost RAA-project. Anyone have
a copy left? Any good parts to share?

Or should I hack into webricks HTTPResponse#send_body-functions?
Chunked with timing and pauses?

-- magnus


1 Answer

Yohanes Santoso

3/29/2005 3:30:00 AM

0

Magnus,

Sorry, should have sent you to the URL:
http://microjet.ath.cx/downloa...

YS.