diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2021-09-22 14:01:18 +0300 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2021-09-22 14:01:18 +0300 |
commit | 4e2e70b16cf1df40327d4633b8622e66a0986275 (patch) | |
tree | cac54c88a8525ece4870170e7a5cfd1904285c47 /src/stream/ngx_stream_core_module.c | |
parent | b2c8e690cee3c450ffb79438f291e639c7891502 (diff) | |
download | nginx-4e2e70b16cf1df40327d4633b8622e66a0986275.tar.gz nginx-4e2e70b16cf1df40327d4633b8622e66a0986275.zip |
QUIC: set NGX_TCP_NODELAY_DISABLED for fake stream connections.
Notably, it is to avoid setting the TCP_NODELAY flag for QUIC streams
in ngx_http_upstream_send_response(). It is an invalid operation on
inherently SOCK_DGRAM sockets, which leads to QUIC connection close.
The change reduces diff to the default branch in stream content phase.
Diffstat (limited to 'src/stream/ngx_stream_core_module.c')
-rw-r--r-- | src/stream/ngx_stream_core_module.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/stream/ngx_stream_core_module.c b/src/stream/ngx_stream_core_module.c index a31242190..39c720569 100644 --- a/src/stream/ngx_stream_core_module.c +++ b/src/stream/ngx_stream_core_module.c @@ -325,9 +325,6 @@ ngx_stream_core_content_phase(ngx_stream_session_t *s, cscf = ngx_stream_get_module_srv_conf(s, ngx_stream_core_module); if (c->type == SOCK_STREAM -#if (NGX_STREAM_QUIC) - && c->quic == NULL -#endif && cscf->tcp_nodelay && ngx_tcp_nodelay(c) != NGX_OK) { |