Opened 1 year ago
Last modified 1 week ago
Traffic shaping (e.g. server.kbytes-per-second = 500) doesn't work with AIO (lighttpd-1.5.0-r1857.tar.gz). Download stops and timeouts after few kbytes...
same here but without aio... Download halts after a few seconds and the connection drops..
Output of test with wget.
I confirm bug with linux-sendfile backend (without aio and r1992). Lighty simply drops connection (see attachment), perhaps instead of shaping. Probability of connection drop increase with speed of download (e.g. with need of traffic shaping).
P.S. Same problem occurs with all network backends (i've tested gthread-aio, gthread-sendfile, write, posix-aio, linux-aio-sendfile, linux-sendfile, writev).
I'm genuinely amazed by how incredibly fast are the lighttpd developers at correcting a "major" bug!
Can somebody test that patch? It seems to give half the configured bw, though.
And why do you use this feature, anyways? If on Linux, use HTB and SFQ, it actually is good. Can give priorities over other traffic (DNS, ICMP, etc.), give fair bandwidth to all clients -- per flow or destination IP etc., paces packets evenly (if configured bandwidth reached) instead of just doing write(stuff) sleep(one second)
I don't use HTB/SFQ because I need to limit the bandwidth for a single vhost, not for the whole server.
As soon as I get back up and running my testing machine I'll try the patch. Thank you
#1102