Re: [Resin-interest] Limit data rate?

2009-08-23 Thread Jon Stevens
Hey Serge! You pretty much *have* to do this with an Input/OutputStream... jon On Sun, Aug 23, 2009 at 10:11 AM, Serge Knystautas wrote: > You could also do this with an OutputStream. > > --Serge Knystautas > PrestoSports > > On Aug 23, 2009, at 12:41 PM, Jon Stevens wrote: > > If you want to

Re: [Resin-interest] Limit data rate?

2009-08-23 Thread Serge Knystautas
You could also do this with an OutputStream. -- Serge Knystautas PrestoSports On Aug 23, 2009, at 12:41 PM, Jon Stevens wrote: If you want to limit the speed of a download, then write a filter to intercept the download and send out the data. It sends out X bytes of the file at a time and t

Re: [Resin-interest] Limit data rate?

2009-08-23 Thread Jon Stevens
If you want to limit the speed of a download, then write a filter to intercept the download and send out the data. It sends out X bytes of the file at a time and then waits X seconds before it sends another X bytes of the file and waits X seconds. read send wait read send wait ... ... jon On Sat