Mercurial > hg > nginx-site
changeset 2013:469aebbd94d0
Limit_req/limit_conn may return not only 503 on failure.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 08 Aug 2017 09:23:25 +0300 |
parents | e1d9e51fd1ce |
children | 6e66487c5756 |
files | xml/en/docs/http/ngx_http_limit_conn_module.xml xml/en/docs/http/ngx_http_limit_req_module.xml xml/ru/docs/http/ngx_http_limit_conn_module.xml xml/ru/docs/http/ngx_http_limit_req_module.xml |
diffstat | 4 files changed, 20 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_limit_conn_module.xml +++ b/xml/en/docs/http/ngx_http_limit_conn_module.xml @@ -10,7 +10,7 @@ <module name="Module ngx_http_limit_conn_module" link="/en/docs/http/ngx_http_limit_conn_module.html" lang="en" - rev="9"> + rev="10"> <section id="summary"> @@ -64,8 +64,8 @@ http { Sets the shared memory zone and the maximum allowed number of connections for a given key value. When this limit is exceeded, the server will return the -<http-status code="503" text="Service Temporarily Unavailable"/> -error in reply to a request. +<link id="limit_conn_status">error</link> +in reply to a request. For example, the directives <example> limit_conn_zone $binary_remote_addr zone=addr:10m; @@ -179,8 +179,8 @@ on 32-bit platforms and 64 bytes on 64-b One megabyte zone can keep about 32 thousand 32-byte states or about 16 thousand 64-byte states. If the zone storage is exhausted, the server will return the -<http-status code="503" text="Service Temporarily Unavailable"/> -error to all further requests. +<link id="limit_conn_status">error</link> +to all further requests. </para> </directive>
--- a/xml/en/docs/http/ngx_http_limit_req_module.xml +++ b/xml/en/docs/http/ngx_http_limit_req_module.xml @@ -10,7 +10,7 @@ <module name="Module ngx_http_limit_req_module" link="/en/docs/http/ngx_http_limit_req_module.html" lang="en" - rev="6"> + rev="7"> <section id="summary"> @@ -67,8 +67,8 @@ their processing is delayed such that re at a defined rate. Excessive requests are delayed until their number exceeds the maximum burst size -in which case the request is terminated with an error -<http-status code="503" text="Service Temporarily Unavailable"/>. +in which case the request is terminated with an +<link id="limit_req_status">error</link>. By default, the maximum burst size is equal to zero. For example, the directives <example> @@ -199,8 +199,8 @@ 64 bytes on 32-bit platforms and 128 byt One megabyte zone can keep about 16 thousand 64-byte states or about 8 thousand 128-byte states. If the zone storage is exhausted, the server will return the -<http-status code="503" text="Service Temporarily Unavailable"/> -error to all further requests. +<link id="limit_req_status">error</link> +to all further requests. </para> <para>
--- a/xml/ru/docs/http/ngx_http_limit_conn_module.xml +++ b/xml/ru/docs/http/ngx_http_limit_conn_module.xml @@ -10,7 +10,7 @@ <module name="Модуль ngx_http_limit_conn_module" link="/ru/docs/http/ngx_http_limit_conn_module.html" lang="ru" - rev="9"> + rev="10"> <section id="summary"> @@ -62,8 +62,8 @@ http { <para> Задаёт зону разделяемой памяти и максимально допустимое число соединений для одного значения ключа. -При превышении этого числа в ответ на запрос сервер вернёт ошибку -<http-status code="503" text="Service Temporarily Unavailable"/>. +При превышении этого числа в ответ на запрос сервер вернёт +<link id="limit_conn_status">ошибку</link>. Например, директивы <example> limit_conn_zone $binary_remote_addr zone=addr:10m; @@ -175,8 +175,8 @@ limit_conn_zone $binary_remote_addr zone В зоне размером 1 мегабайт может разместиться около 32 тысяч состояний размером 32 байта или 16 тысяч состояний размером 64 байта. При переполнении зоны в ответ на последующие запросы сервер будет -возвращать ошибку -<http-status code="503" text="Service Temporarily Unavailable"/>. +возвращать +<link id="limit_conn_status">ошибку</link>. </para> </directive>
--- a/xml/ru/docs/http/ngx_http_limit_req_module.xml +++ b/xml/ru/docs/http/ngx_http_limit_req_module.xml @@ -10,7 +10,7 @@ <module name="Модуль ngx_http_limit_req_module" link="/ru/docs/http/ngx_http_limit_req_module.html" lang="ru" - rev="6"> + rev="7"> <section id="summary"> @@ -67,8 +67,8 @@ http { с заданной скоростью. Избыточные запросы задерживаются до тех пор, пока их число не превысит максимальный размер всплеска. -При превышении запрос завершается с ошибкой -<http-status code="503" text="Service Temporarily Unavailable"/>. +При превышении запрос завершается с +<link id="limit_req_status">ошибкой</link>. По умолчанию максимальный размер всплеска равен нулю. Например, директивы <example> @@ -196,8 +196,8 @@ 64 байтам на 32-битных платформах и 128 байтам на 64-битных платформах. В зоне размером 1 мегабайт может разместиться около 16 тысяч состояний размером 64 байта или около 8 тысяч состояний размером 128 байт. При переполнении зоны в ответ на последующие запросы сервер будет -возвращать ошибку -<http-status code="503" text="Service Temporarily Unavailable"/>. +возвращать +<link id="limit_req_status">ошибку</link>. </para> <para>