]> git.kaiwu.me - nginx.git/commit
Fixed interaction of limit_rate and sendfile_max_chunk.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 26 Dec 2011 10:51:24 +0000 (10:51 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 26 Dec 2011 10:51:24 +0000 (10:51 +0000)
commit0c88994a0370af04ed1d9dc09f16e695bfd0a343
tree7a6876c4ac317f6f310266bdacea692e8ca90a57
parent41a77d183c5b5b0b57d042378e01488362406fb7
Fixed interaction of limit_rate and sendfile_max_chunk.

It's possible that configured limit_rate will permit more bytes per
single operation than sendfile_max_chunk.  To protect disk from takeover
by a single client it is necessary to apply sendfile_max_chunk as a limit
regardless of configured limit_rate.

See here for report (in Russian):
http://mailman.nginx.org/pipermail/nginx-ru/2010-March/032806.html
src/http/ngx_http_write_filter_module.c