]> git.kaiwu.me - nginx.git/commit
Changed default value of sendfile_max_chunk to 2m.
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 29 Oct 2021 17:21:57 +0000 (20:21 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 29 Oct 2021 17:21:57 +0000 (20:21 +0300)
commit5636e7f7b491a4db287e3aa5312cd5955075f5ec
tree50c16e7e52b07684b77f908dd4fadc7a11ffe4f4
parentb3b368184b1e3c82da6703e8d7367f38fdc98d1a
Changed default value of sendfile_max_chunk to 2m.

The "sendfile_max_chunk" directive is important to prevent worker
monopolization by fast connections.  The 2m value implies maximum 200ms
delay with 100 Mbps links, 20ms delay with 1 Gbps links, and 2ms on
10 Gbps links.  It also seems to be a good value for disks.
src/http/ngx_http_core_module.c