From e56ba23158b8466d108fd4d571bd7d9a88f2a473 Mon Sep 17 00:00:00 2001 From: Vladimir Homutov Date: Wed, 22 Sep 2021 10:20:00 +0300 Subject: 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. --- src/stream/ngx_stream_upstream.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/stream/ngx_stream_upstream.h') 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; -- cgit