Mercurial > hg > nginx-site
comparison xml/en/docs/stream/ngx_stream_limit_conn_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 | 53ae63cb4cfa |
children | ab56dcd73af2 |
comparison
equal
deleted
inserted
replaced
1698:2052ffb3529a | 1699:6c96a644b0b3 |
---|---|
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
9 | 9 |
10 <module name="Module ngx_stream_limit_conn_module" | 10 <module name="Module ngx_stream_limit_conn_module" |
11 link="/en/docs/stream/ngx_stream_limit_conn_module.html" | 11 link="/en/docs/stream/ngx_stream_limit_conn_module.html" |
12 lang="en" | 12 lang="en" |
13 rev="1"> | 13 rev="2"> |
14 | 14 |
15 <section id="summary"> | 15 <section id="summary"> |
16 | 16 |
17 <para> | 17 <para> |
18 The <literal>ngx_stream_limit_conn_module</literal> module (1.9.3) is used to | 18 The <literal>ngx_stream_limit_conn_module</literal> module (1.9.3) is used to |
123 limit_conn_zone $binary_remote_addr zone=addr:10m; | 123 limit_conn_zone $binary_remote_addr zone=addr:10m; |
124 </example> | 124 </example> |
125 Here, the key is a client IP address set by the | 125 Here, the key is a client IP address set by the |
126 <literal>$binary_remote_addr</literal> key. | 126 <literal>$binary_remote_addr</literal> key. |
127 The size of <literal>$binary_remote_addr</literal> | 127 The size of <literal>$binary_remote_addr</literal> |
128 is 4 bytes. | 128 is 4 bytes for IPv4 addresses or 16 bytes for IPv6 addresses. |
129 The stored state always occupies 32 bytes | 129 The stored state always occupies 32 or 64 bytes |
130 on 32-bit platforms and 64 bytes on 64-bit platforms. | 130 on 32-bit platforms and 64 bytes on 64-bit platforms. |
131 One megabyte zone can keep about 32 thousand 32-byte states | 131 One megabyte zone can keep about 32 thousand 32-byte states |
132 or about 16 thousand 64-byte states. | 132 or about 16 thousand 64-byte states. |
133 If the zone storage is exhausted, the server will close the connection. | 133 If the zone storage is exhausted, the server will close the connection. |
134 </para> | 134 </para> |