# HG changeset patch # User Ruslan Ermilov # Date 1380706886 -14400 # Node ID c5ccf511346acc4a74ad4edf7bcbbde9dab42661 # Parent f09f77ef45e9a66712cb902dedfc4f346b75a147 Documented the "fastcgi_buffering" directive. diff -r f09f77ef45e9 -r c5ccf511346a xml/en/docs/http/ngx_http_fastcgi_module.xml --- a/xml/en/docs/http/ngx_http_fastcgi_module.xml Wed Oct 02 13:41:24 2013 +0400 +++ b/xml/en/docs/http/ngx_http_fastcgi_module.xml Wed Oct 02 13:41:26 2013 +0400 @@ -10,7 +10,7 @@ + rev="10">
@@ -84,6 +84,48 @@ + +on | off +on +http +server +location +1.5.6 + + +Enables or disables buffering of responses from the FastCGI server. + + + +When buffering is enabled, nginx receives a response from the FastCGI server +as soon as possible, saving it into the buffers set by the + and directives. +If the whole response does not fit into memory, a part of it can be saved +to a temporary file on the disk. +Writing to temporary files is controlled by the + and + directives. + + + +When buffering is disabled, a response is passed to a client synchronously, +immediately as it is received. +nginx will not try to read the whole response from the FastCGI server. +The maximum size of the data that nginx can receive from the server +at a time is set by the directive. + + + +Buffering can also be enabled or disabled by passing +“yes” or “no” in the +
X-Accel-Buffering
response header field. +This capability can be disabled using the + directive. +
+ +
+ + number size 8 4k|8k @@ -110,7 +152,8 @@ location -Limits the total size of buffers that +When buffering of responses from the FastCGI +server is enabled, limits the total size of buffers that can be busy sending a response to the client while the response is not yet fully read. In the mean time, the rest of the buffers can be used for reading a response @@ -541,7 +584,7 @@
X-Accel-Buffering
enables or disables -buffering of a response; +buffering of a response;
@@ -626,7 +669,8 @@ location -When the whole response does not fit into the memory buffers +When buffering of responses from the FastCGI +server is enabled, and the whole response does not fit into the memory buffers set by the and directives, a part of the response can be saved to a temporary file. This directive sets the maximum size of a temporary file. diff -r f09f77ef45e9 -r c5ccf511346a xml/ru/docs/http/ngx_http_fastcgi_module.xml --- a/xml/ru/docs/http/ngx_http_fastcgi_module.xml Wed Oct 02 13:41:24 2013 +0400 +++ b/xml/ru/docs/http/ngx_http_fastcgi_module.xml Wed Oct 02 13:41:26 2013 +0400 @@ -10,7 +10,7 @@ + rev="10">
@@ -83,6 +83,48 @@ + +on | off +on +http +server +location +1.5.6 + + +Разрешает или запрещает использовать буферизацию ответов FastCGI-сервера. + + + +Если буферизация включена, то nginx принимает ответ FastCGI-сервера +как можно быстрее, сохраняя его в буферы, заданные директивами + и . +Если ответ не вмещается целиком в память, то его часть может быть записана +на диск во временный файл. +Запись во временные файлы контролируется директивами + и +. + + + +Если буферизация выключена, то ответ синхронно передаётся клиенту сразу же +по мере его поступления. +nginx не пытается считать весь ответ FastCGI-сервера. +Максимальный размер данных, который nginx может принять от сервера +за один раз, задаётся директивой . + + + +Буферизация может быть также включена или выключена путём передачи +значения “yes” или “no” в поле +
X-Accel-Buffering
заголовка ответа. +Эту возможность можно запретить с помощью директивы +. +
+ +
+ + число размер 8 4k|8k @@ -109,7 +151,8 @@ location -Ограничивает суммарный размер +При включённой буферизации ответов +FastCGI-сервера, ограничивает суммарный размер буферов, которые могут быть заняты для отправки ответа клиенту, пока ответ ещё не прочитан целиком. Оставшиеся буферы тем временем могут использоваться для чтения ответа @@ -536,7 +579,7 @@
X-Accel-Buffering
включает или выключает -буферизацию ответа; +буферизацию ответа;
@@ -622,9 +665,10 @@ location -Если ответ не вмещается целиком в буферы памяти, заданные -директивами и , -часть ответа может быть записана во временный файл. +Если включена буферизация ответов +FastCGI-сервера, и ответ не вмещается целиком в буферы памяти, +заданные директивами и +, часть ответа может быть записана во временный файл. Эта директива задаёт максимальный размер временного файла. Размер данных, сбрасываемых во временный файл за один раз, задаётся директивой .