summaryrefslogtreecommitdiffhomepage
path: root/src/stream/ngx_stream_upstream.h
diff options
context:
space:
mode:
authorVladimir Homutov <vl@nginx.com>2021-09-22 10:20:00 +0300
committerVladimir Homutov <vl@nginx.com>2021-09-22 10:20:00 +0300
commite56ba23158b8466d108fd4d571bd7d9a88f2a473 (patch)
tree100e8c1244711933931875c1cdca5f1615ad3f3a /src/stream/ngx_stream_upstream.h
parentadbd28b7a9843ebce895f9903f19c5a740d61db4 (diff)
downloadnginx-e56ba23158b8466d108fd4d571bd7d9a88f2a473.tar.gz
nginx-e56ba23158b8466d108fd4d571bd7d9a88f2a473.tar.bz2
Stream: added half-close support.
The "proxy_half_close" directive enables handling of TCP half close. If enabled, connection to proxied server is kept open until both read ends get EOF. Write end shutdown is properly transmitted via proxy.
Diffstat (limited to '')
-rw-r--r--src/stream/ngx_stream_upstream.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stream/ngx_stream_upstream.h b/src/stream/ngx_stream_upstream.h
index 9857e0b75..f5617794f 100644
--- a/src/stream/ngx_stream_upstream.h
+++ b/src/stream/ngx_stream_upstream.h
@@ -142,6 +142,7 @@ typedef struct {
ngx_stream_upstream_state_t *state;
unsigned connected:1;
unsigned proxy_protocol:1;
+ unsigned half_closed:1;
} ngx_stream_upstream_t;