Bug#218671: apache-common: mod_bandwidth BandWidth number off by a factor of five
On Sun, Nov 02, 2003 at 01:15:06AM +0000, Tom Goulet wrote:
> I have this in my Apache configuration file:
> | BandWidthModule On
> | BandWidthPulse 1000000
> | <Directory /var/pub/library>
> | # Though the documentation says the number specifies the number of bytes per
> | # second. In practice the value needs to be several times higher than the
> | # number of bytes per second you want.
> | # I'm going for 8KiB/s.
> | BandWidth all 41000
> | </Directory>
> When I use that configuration and download over a 100Mbit/s link I get:
> | 0% [ ] 862,448 8.02K/s ETA 22:54:47
>
> The documentation (not part of the Debian binary) says the bandwidth
> limit is in bytes/s meanwhile it seems to be closer to bytes/five second
> period.
>
> The documentation I am using came from the source code to the bandwidth
> module from the Debian package. I suspect the module's implementation
> needs to be corrected.
The documentation is somewhat misleading. It's a global limit rather
than a per-connection limit. So if you have 5 connections, it would
indeed limit you to a fifth of the complete limit.
A plausible explanation for the problem?
--
"It's not Hollywood. War is real, war is primarily not about defeat or
victory, it is about death. I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk
Reply to: