changeset 2788:03b49685c056

Documented the proxy_half_close directive for stream.
author Yaroslav Zhuravlev <yar@nginx.com>
date Tue, 12 Oct 2021 20:51:19 +0100
parents 005b056c267f
children d16409187314
files xml/en/docs/stream/ngx_stream_proxy_module.xml xml/ru/docs/stream/ngx_stream_proxy_module.xml
diffstat 2 files changed, 36 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/stream/ngx_stream_proxy_module.xml
+++ b/xml/en/docs/stream/ngx_stream_proxy_module.xml
@@ -9,7 +9,7 @@
 <module name="Module ngx_stream_proxy_module"
         link="/en/docs/stream/ngx_stream_proxy_module.html"
         lang="en"
-        rev="27">
+        rev="28">
 
 <section id="summary">
 
@@ -159,6 +159,23 @@ proxy_download_rate $rate;
 </directive>
 
 
+<directive name="proxy_half_close">
+<syntax><literal>on</literal> | <literal>off</literal></syntax>
+<default>off</default>
+<context>stream</context>
+<context>server</context>
+<appeared-in>1.21.4</appeared-in>
+
+<para>
+Enables or disables closing
+each direction of a TCP connection independently (“TCP half-close”).
+If enabled, proxying over TCP will be kept
+until both sides close the connection.
+</para>
+
+</directive>
+
+
 <directive name="proxy_next_upstream">
 <syntax><literal>on</literal> | <literal>off</literal></syntax>
 <default>on</default>
--- a/xml/ru/docs/stream/ngx_stream_proxy_module.xml
+++ b/xml/ru/docs/stream/ngx_stream_proxy_module.xml
@@ -9,7 +9,7 @@
 <module name="Модуль ngx_stream_proxy_module"
         link="/ru/docs/stream/ngx_stream_proxy_module.html"
         lang="ru"
-        rev="27">
+        rev="28">
 
 <section id="summary">
 
@@ -161,6 +161,23 @@ proxy_download_rate $rate;
 </directive>
 
 
+<directive name="proxy_half_close">
+<syntax><literal>on</literal> | <literal>off</literal></syntax>
+<default>off</default>
+<context>stream</context>
+<context>server</context>
+<appeared-in>1.21.4</appeared-in>
+
+<para>
+Разрешает или запрещает независимое закрытие
+каждой из сторон проксируемого соединения TCP (“TCP half-close”).
+Если разрешено, то проксирование по TCP будет продолжаться,
+пока обе стороны не закроют соединение.
+</para>
+
+</directive>
+
+
 <directive name="proxy_next_upstream">
 <syntax><literal>on</literal> | <literal>off</literal></syntax>
 <default>on</default>