mirror of
https://github.com/nginx/nginx.git
synced 2024-12-05 06:19:01 +08:00
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:
parent
c31e105403
commit
9d46500914
@ -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) {
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user