Mercurial > hg > nginx-site
diff xml/en/docs/http/ngx_http_limit_req_module.xml @ 1699:6c96a644b0b3
Corrected description of $binary_remote_addr and saved state.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Thu, 05 May 2016 14:43:40 +0300 |
parents | 7945dac7ad47 |
children | 469aebbd94d0 |
line wrap: on
line diff
--- 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="5"> + rev="6"> <section id="summary"> @@ -191,9 +191,13 @@ 1 request per second. <para> A client IP address serves as a key. Note that instead of <var>$remote_addr</var>, the -<var>$binary_remote_addr</var> variable is used here, -that allows decreasing the state size down to 64 bytes. -One megabyte zone can keep about 16 thousand 64-byte states. +<var>$binary_remote_addr</var> variable is used here. +The <var>$binary_remote_addr</var> variable’s size +is always 4 bytes for IPv4 addresses or 16 bytes for IPv6 addresses. +The stored state always occupies +64 bytes on 32-bit platforms and 128 bytes on 64-bit platforms. +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.