changeset 2793:4934cbc1db19

Changed default value of sendfile_max_chunk to 2m.
author Yaroslav Zhuravlev <yar@nginx.com>
date Tue, 02 Nov 2021 14:39:02 +0000
parents c6713b6b86ce
children b74f2038f2b5
files xml/en/docs/http/ngx_http_core_module.xml xml/ru/docs/http/ngx_http_core_module.xml
diffstat 2 files changed, 12 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_core_module.xml
+++ b/xml/en/docs/http/ngx_http_core_module.xml
@@ -10,7 +10,7 @@
 <module name="Module ngx_http_core_module"
         link="/en/docs/http/ngx_http_core_module.html"
         lang="en"
-        rev="97">
+        rev="98">
 
 <section id="directives" name="Directives">
 
@@ -2399,15 +2399,18 @@ Before version 1.7.11, pre-loading could
 <directive name="sendfile_max_chunk">
 
 <syntax><value>size</value></syntax>
-<default>0</default>
+<default>2m</default>
 <context>http</context>
 <context>server</context>
 <context>location</context>
 
 <para>
-When set to a non-zero value, limits the amount of data that can be
+Limits the amount of data that can be
 transferred in a single <c-func>sendfile</c-func> call.
 Without the limit, one fast connection may seize the worker process entirely.
+<note>
+Prior to version 1.21.4, by default there was no limit.
+</note>
 </para>
 
 </directive>
--- a/xml/ru/docs/http/ngx_http_core_module.xml
+++ b/xml/ru/docs/http/ngx_http_core_module.xml
@@ -10,7 +10,7 @@
 <module name="Модуль ngx_http_core_module"
         link="/ru/docs/http/ngx_http_core_module.html"
         lang="ru"
-        rev="97">
+        rev="98">
 
 <section id="directives" name="Директивы">
 
@@ -2400,16 +2400,19 @@ location /video/ {
 <directive name="sendfile_max_chunk">
 
 <syntax><value>размер</value></syntax>
-<default>0</default>
+<default>2m</default>
 <context>http</context>
 <context>server</context>
 <context>location</context>
 
 <para>
-При установке в ненулевое значение ограничивает объём данных,
+Ограничивает объём данных,
 который может передан за один вызов <c-func>sendfile</c-func>.
 Без этого ограничения одно быстрое соединение может целиком
 захватить рабочий процесс.
+<note>
+До версии 1.21.4 по умолчанию ограничения не было.
+</note>
 </para>
 
 </directive>