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
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
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
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
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
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