Bug #1213
closedtraffic shaping doesn't work with AIO in lighttpd-1.5.0-r1857
Description
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...
-- deblog
Files
Updated by j0t over 17 years ago
same here but without aio... Download halts after a few seconds and the connection drops..
Updated by Anonymous about 17 years ago
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).
-- deblog
Updated by Anonymous about 17 years ago
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).
-- deblog
Updated by Anonymous almost 17 years ago
I'm genuinely amazed by how incredibly fast are the lighttpd developers at correcting a "major" bug!
Updated by Safari over 16 years ago
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)
Updated by j0t over 16 years ago
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
Updated by stbuehler over 16 years ago
- Status changed from New to Fixed
- Resolution set to duplicate
Also available in: Atom