Re: [Resin-interest] Limit data rate?
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 rm...@latencyzero.com 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 server, and would be interested in slowing down the downloads of files (but not necessarily servlets). TIA, Rick ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Limit data rate?
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, Rick Mann rm...@latencyzero.com 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 server, and would be interested in slowing down the downloads of files (but not necessarily servlets). TIA, Rick ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Limit data rate?
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, Aug 22, 2009 at 11:50 PM, Rick Mann rm...@latencyzero.com wrote: 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, Rick Mann rm...@latencyzero.com 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 server, and would be interested in slowing down the downloads of files (but not necessarily servlets). TIA, Rick ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Limit data rate?
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 ser...@lokitech.comwrote: You could also do this with an OutputStream. --Serge Knystautas PrestoSports On Aug 23, 2009, at 12:41 PM, Jon Stevens latch...@gmail.com 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 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, Aug 22, 2009 at 11:50 PM, Rick Mann rm...@latencyzero.com rm...@latencyzero.com wrote: 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.htmlhttp://codee.pl/cband.html jon On Sat, Aug 22, 2009 at 10:44 PM, Rick Mann rm...@latencyzero.com rm...@latencyzero.com 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 server, and would be interested in slowing down the downloads of files (but not necessarily servlets). TIA, Rick ___ resin-interest mailing list resin-interest@caucho.comresin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.comresin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.comresin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest