diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2021-10-29 20:21:57 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2021-10-29 20:21:57 +0300 |
commit | 5636e7f7b491a4db287e3aa5312cd5955075f5ec (patch) | |
tree | 50c16e7e52b07684b77f908dd4fadc7a11ffe4f4 /src/http/ngx_http_request.c | |
parent | b3b368184b1e3c82da6703e8d7367f38fdc98d1a (diff) | |
download | nginx-5636e7f7b491a4db287e3aa5312cd5955075f5ec.tar.gz nginx-5636e7f7b491a4db287e3aa5312cd5955075f5ec.zip |
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.
Diffstat (limited to 'src/http/ngx_http_request.c')
0 files changed, 0 insertions, 0 deletions