Do not close QUIC sockets in ngx_close_listening_sockets().

This breaks graceful shutdown of QUIC connections in terms of quic-transport.
This commit is contained in:
Sergey Kandaurov 2020-06-23 11:57:00 +03:00
parent c31e105403
commit 9d46500914
3 changed files with 9 additions and 0 deletions

View File

@ -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) {

View File

@ -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;

View File

@ -1797,6 +1797,10 @@ ngx_http_add_listening(ngx_conf_t *cf, ngx_http_conf_addr_t *addr)
ls->wildcard = addr->opt.wildcard;
#if (NGX_HTTP_SSL)
ls->quic = addr->opt.http3;
#endif
return ls;
}