I’ve created this patch for Lighttpd 1.4.19 (tested and compiled on Debian Lenny amd64). This patch adds configuration option:
You should use it only with:
connection.kbytes-per-second = 100
connection.burst = 50
In this example user will get 50 seconds fast-start and will be throttled down to 100KBp/s after fast start “burst” download of first 50sec.
It’s very useful for letting fast speed for downloading small files or for usage for FLV streaming when you like to give fast buffer burst speed and then throttle down.
I wrote this patch after looked long time in Google and had unfortune expirience with LARTC ‘s tools.
I hope this will be useful for you, for any comments, questions or bugs please write me a note.
Installation on Debian:
apt-get source lighttpd
patch -p0 < lighttpd-1419-burst.patch
now compile and configure: