Mercurial > hg > nginx-quic
comparison src/stream/ngx_stream_upstream.h @ 8653:bfad703459b4
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.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Wed, 22 Sep 2021 10:20:00 +0300 |
parents | 16a1adadf437 |
children |
comparison
equal
deleted
inserted
replaced
8652:97cf8284fd19 | 8653:bfad703459b4 |
---|---|
140 ngx_stream_upstream_srv_conf_t *upstream; | 140 ngx_stream_upstream_srv_conf_t *upstream; |
141 ngx_stream_upstream_resolved_t *resolved; | 141 ngx_stream_upstream_resolved_t *resolved; |
142 ngx_stream_upstream_state_t *state; | 142 ngx_stream_upstream_state_t *state; |
143 unsigned connected:1; | 143 unsigned connected:1; |
144 unsigned proxy_protocol:1; | 144 unsigned proxy_protocol:1; |
145 unsigned half_closed:1; | |
145 } ngx_stream_upstream_t; | 146 } ngx_stream_upstream_t; |
146 | 147 |
147 | 148 |
148 ngx_stream_upstream_srv_conf_t *ngx_stream_upstream_add(ngx_conf_t *cf, | 149 ngx_stream_upstream_srv_conf_t *ngx_stream_upstream_add(ngx_conf_t *cf, |
149 ngx_url_t *u, ngx_uint_t flags); | 150 ngx_url_t *u, ngx_uint_t flags); |