# HG changeset patch # User Yaroslav Zhuravlev # Date 1432576114 -10800 # Node ID 9faa78768252ed73b779311f3e74e5a49c66e9ed # Parent 9b8df6c3cf3e56acaae3cd1f7f856bd349df3ffe Documented the "reuseport" option of the "listen" directive. diff --git a/xml/en/docs/http/ngx_http_core_module.xml b/xml/en/docs/http/ngx_http_core_module.xml --- a/xml/en/docs/http/ngx_http_core_module.xml +++ b/xml/en/docs/http/ngx_http_core_module.xml @@ -10,7 +10,7 @@ + rev="40">
@@ -1129,6 +1129,7 @@ The “wait-read-ignore” cycle is repeated, but no longer than specified by the [deferred] [bind] [ipv6only=on|off] + [reuseport] [so_keepalive=on|off|[keepidle]:[keepintvl]:[keepcnt]] port @@ -1145,6 +1146,7 @@ The “wait-read-ignore” cycle is repeated, but no longer than specified by the [deferred] [bind] [ipv6only=on|off] + [reuseport] [so_keepalive=on|off|[keepidle]:[keepintvl]:[keepcnt]] unix:path @@ -1366,6 +1368,21 @@ in effect for the socket. +reuseport + + +this parameter (1.9.1) instructs to create an individual listening socket +for each worker process +(using the SO_REUSEPORT socket option), allowing a kernel +to distribute incoming connections between worker processes more effectively. +This currently works only on Linux and DragonFly BSD. + +Inappropriate use of this option may have its security +implications. + + + + so_keepalive=on|off|[keepidle]:[keepintvl]:[keepcnt] diff --git a/xml/en/docs/stream/ngx_stream_core_module.xml b/xml/en/docs/stream/ngx_stream_core_module.xml --- a/xml/en/docs/stream/ngx_stream_core_module.xml +++ b/xml/en/docs/stream/ngx_stream_core_module.xml @@ -9,7 +9,7 @@ + rev="4">
@@ -67,6 +67,7 @@ stream { [ssl] [bind] [ipv6only=on|off] + [reuseport] [so_keepalive=on|off|[keepidle]:[keepintvl]:[keepcnt]] server @@ -138,6 +139,21 @@ It can only be set once on start. +reuseport + + +this parameter (1.9.1) instructs to create an individual listening socket +for each worker process +(using the SO_REUSEPORT socket option), allowing a kernel +to distribute incoming connections between worker processes more effectively. +This currently works only on Linux and DragonFly BSD. + +Inappropriate use of this option may have its security +implications. + + + + so_keepalive=on|off|[keepidle]:[keepintvl]:[keepcnt] diff --git a/xml/ru/docs/http/ngx_http_core_module.xml b/xml/ru/docs/http/ngx_http_core_module.xml --- a/xml/ru/docs/http/ngx_http_core_module.xml +++ b/xml/ru/docs/http/ngx_http_core_module.xml @@ -10,7 +10,7 @@ + rev="40">
@@ -1124,6 +1124,7 @@ location /flv/ { [deferred] [bind] [ipv6only=on|off] + [reuseport] [so_keepalive=on|off|[keepidle]:[keepintvl]:[keepcnt]] порт @@ -1140,6 +1141,7 @@ location /flv/ { [deferred] [bind] [ipv6only=on|off] + [reuseport] [so_keepalive=on|off|[keepidle]:[keepintvl]:[keepcnt]] unix:путь @@ -1361,6 +1363,22 @@ FreeBSD и Mac OS X, и 511 для других платформ. +reuseport + + +этот параметр (1.9.1) указывает, что нужно создавать отдельный слушающий сокет +для каждого рабочего процесса +(через параметр сокета SO_REUSEPORT), позволяя ядру +эффективнее распределять входящие соединения между рабочими процессами. +В настоящий момент это работает только на Linux и DragonFly BSD. + +Ненадлежащее использование параметра может иметь +последствия +в плане безопасности. + + + + so_keepalive=on|off|[keepidle]:[keepintvl]:[keepcnt]