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

Re: [Resin-interest] Limit data rate?

2009-08-22 Thread Rick Mann
Thanks for the suggestion, but it's not really very helpful. I use Resin, and not Apache. On Aug 22, 2009, at 23:19:20, Jon Stevens wrote: > I wouldn't use Resin for that... I'd use apache2... and something > like this... http://codee.pl/cband.html > > jon > > On Sat, Aug 22, 2009 at 10:44 PM

Re: [Resin-interest] Limit data rate?

2009-08-22 Thread Jon Stevens
I wouldn't use Resin for that... I'd use apache2... and something like this... http://codee.pl/cband.html jon On Sat, Aug 22, 2009 at 10:44 PM, Rick Mann wrote: > Is there any way to configure resin to limit the rate at which it will > send bits per resource? I have bandwidth limits on my serve

[Resin-interest] Limit data rate?

2009-08-22 Thread Rick Mann
Is there any way to configure resin to limit the rate at which it will send bits per resource? I have bandwidth limits on my server, and would be interested in slowing down the downloads of files (but not necessarily servlets). TIA, Rick ___ res