# HG changeset patch # User Yaroslav Zhuravlev # Date 1528305349 -10800 # Node ID 962e1adfa03277a42da4bb4ebb5b3aced0d71fa5 # Parent cb431c861670d6099f934d4045f4eecf23f5b3a8 Documented UDP streams. diff -r cb431c861670 -r 962e1adfa032 xml/en/docs/stream/ngx_stream_core_module.xml --- a/xml/en/docs/stream/ngx_stream_core_module.xml Tue Jun 05 18:23:50 2018 +0300 +++ b/xml/en/docs/stream/ngx_stream_core_module.xml Wed Jun 06 20:15:49 2018 +0300 @@ -9,7 +9,7 @@ + rev="25">
@@ -58,8 +58,7 @@ } server { - listen 127.0.0.1:53 udp; - proxy_responses 1; + listen 127.0.0.1:53 udp reuseport; proxy_timeout 20s; proxy_pass dns; } diff -r cb431c861670 -r 962e1adfa032 xml/en/docs/stream/ngx_stream_proxy_module.xml --- a/xml/en/docs/stream/ngx_stream_proxy_module.xml Tue Jun 05 18:23:50 2018 +0300 +++ b/xml/en/docs/stream/ngx_stream_proxy_module.xml Wed Jun 06 20:15:49 2018 +0300 @@ -9,7 +9,7 @@ + rev="20">
@@ -38,8 +38,7 @@ } server { - listen 53 udp; - proxy_responses 1; + listen 53 udp reuseport; proxy_timeout 20s; proxy_pass dns.example.com:53; } @@ -260,12 +259,11 @@ Sets the number of datagrams expected from the proxied server -in response to the client request +in response to a client datagram if the UDP protocol is used. -By default, the number of datagrams is not limited: -the response datagrams will be sent -until the value expires. +The number serves as a hint for session termination. +By default, the number of datagrams is not limited. diff -r cb431c861670 -r 962e1adfa032 xml/ru/docs/stream/ngx_stream_core_module.xml --- a/xml/ru/docs/stream/ngx_stream_core_module.xml Tue Jun 05 18:23:50 2018 +0300 +++ b/xml/ru/docs/stream/ngx_stream_core_module.xml Wed Jun 06 20:15:49 2018 +0300 @@ -9,7 +9,7 @@ + rev="25">
@@ -58,8 +58,7 @@ } server { - listen 127.0.0.1:53 udp; - proxy_responses 1; + listen 127.0.0.1:53 udp reuseport; proxy_timeout 20s; proxy_pass dns; } diff -r cb431c861670 -r 962e1adfa032 xml/ru/docs/stream/ngx_stream_proxy_module.xml --- a/xml/ru/docs/stream/ngx_stream_proxy_module.xml Tue Jun 05 18:23:50 2018 +0300 +++ b/xml/ru/docs/stream/ngx_stream_proxy_module.xml Wed Jun 06 20:15:49 2018 +0300 @@ -9,7 +9,7 @@ + rev="20">
@@ -38,8 +38,7 @@ } server { - listen 53 udp; - proxy_responses 1; + listen 53 udp reuseport; proxy_timeout 20s; proxy_pass dns.example.com:53; } @@ -262,12 +261,11 @@ Задаёт количество датаграмм, ожидаемых от проксируемого сервера -в ответ на запрос клиента +в ответ на датаграмму клиента в случае, если используется протокол UDP. -По умолчанию количество датаграмм не ограничено: -ответные датаграммы будут отправляться -до истечения значения . +Задаваемое число cлужит подсказкой для завершения сессии. +По умолчанию количество датаграмм не ограничено.