http_server: Lower maximum download rate from 1 MB/s to 125 kB/s.

We've found evidence that the current limit of 1 MB/s is overwhelming
some sites when p2p is enabled. If you do the numbers, 1 MB/s with
three concurrent downloads (the current limit) works out to a
bandwidth usage of 48 MBit/s which definitely overwhelms any
802.11a/b/g wireless network in use today.

Therefore, lower the bandwidth limit to 125 kB/s. With three
concurrent downloads, this works out to 6 MBit/s which is just a tad
more than half the nominal bandwidth of a 802.11b wireless network
(the slowest wireless standard in use today.)

Also lower the buffer size to avoid bursts.

TEST=Unit-tests pass.

Change-Id: I8aaa064a6789296d49984bac7a2b6e065a4c2aa7
Reviewed-by: Chris Sosa <>
Commit-Queue: David Zeuthen <>
Tested-by: David Zeuthen <>
2 files changed