Mercurial > hg > nginx-site
diff xml/en/docs/http/ngx_http_core_module.xml @ 1493:9faa78768252
Documented the "reuseport" option of the "listen" directive.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Mon, 25 May 2015 20:48:34 +0300 |
parents | 42f288fc9ad3 |
children | 99ce48c8cce3 |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_core_module.xml Tue May 26 17:14:04 2015 +0300 +++ b/xml/en/docs/http/ngx_http_core_module.xml Mon May 25 20:48:34 2015 +0300 @@ -10,7 +10,7 @@ <module name="Module ngx_http_core_module" link="/en/docs/http/ngx_http_core_module.html" lang="en" - rev="39"> + rev="40"> <section id="directives" name="Directives"> @@ -1129,6 +1129,7 @@ [<literal>deferred</literal>] [<literal>bind</literal>] [<literal>ipv6only</literal>=<literal>on</literal>|<literal>off</literal>] + [<literal>reuseport</literal>] [<literal>so_keepalive</literal>=<literal>on</literal>|<literal>off</literal>|[<value>keepidle</value>]:[<value>keepintvl</value>]:[<value>keepcnt</value>]]</syntax> <syntax> <value>port</value> @@ -1145,6 +1146,7 @@ [<literal>deferred</literal>] [<literal>bind</literal>] [<literal>ipv6only</literal>=<literal>on</literal>|<literal>off</literal>] + [<literal>reuseport</literal>] [<literal>so_keepalive</literal>=<literal>on</literal>|<literal>off</literal>|[<value>keepidle</value>]:[<value>keepintvl</value>]:[<value>keepcnt</value>]]</syntax> <syntax> <literal>unix:</literal><value>path</value> @@ -1366,6 +1368,21 @@ </tag-desc> <tag-name> +<literal>reuseport</literal> +</tag-name> +<tag-desc> +this parameter (1.9.1) instructs to create an individual listening socket +for each worker process +(using the <c-def>SO_REUSEPORT</c-def> socket option), allowing a kernel +to distribute incoming connections between worker processes more effectively. +This currently works only on Linux and DragonFly BSD. +<note> +Inappropriate use of this option may have its security +<link url="http://man7.org/linux/man-pages/man7/socket.7.html">implications</link>. +</note> +</tag-desc> + +<tag-name> <literal>so_keepalive</literal>=<literal>on</literal>|<literal>off</literal>|[<value>keepidle</value>]:[<value>keepintvl</value>]:[<value>keepcnt</value>] </tag-name> <tag-desc>