diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2020-06-23 11:57:00 +0300 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2020-06-23 11:57:00 +0300 |
commit | 9d465009149c67325d9ac49503891cc84e5eaef8 (patch) | |
tree | 71713b4d7c43b4b74e619315958c666433436389 /src/core | |
parent | c31e1054034589af9a12119371e502748af61e5a (diff) | |
download | nginx-9d465009149c67325d9ac49503891cc84e5eaef8.tar.gz nginx-9d465009149c67325d9ac49503891cc84e5eaef8.zip |
Do not close QUIC sockets in ngx_close_listening_sockets().
This breaks graceful shutdown of QUIC connections in terms of quic-transport.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/ngx_connection.c | 4 | ||||
-rw-r--r-- | src/core/ngx_connection.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/core/ngx_connection.c b/src/core/ngx_connection.c index 9ec1cd7ac..5bae54502 100644 --- a/src/core/ngx_connection.c +++ b/src/core/ngx_connection.c @@ -1034,6 +1034,10 @@ ngx_close_listening_sockets(ngx_cycle_t *cycle) ls = cycle->listening.elts; for (i = 0; i < cycle->listening.nelts; i++) { + if (ls[i].quic) { + continue; + } + c = ls[i].connection; if (c) { diff --git a/src/core/ngx_connection.h b/src/core/ngx_connection.h index b3a36cf05..294d4b212 100644 --- a/src/core/ngx_connection.h +++ b/src/core/ngx_connection.h @@ -75,6 +75,7 @@ struct ngx_listening_s { unsigned reuseport:1; unsigned add_reuseport:1; unsigned keepalive:2; + unsigned quic:1; unsigned deferred_accept:1; unsigned delete_deferred:1; |