# HG changeset patch # User Sergey Kandaurov # Date 1592902620 -10800 # Node ID 3b5fbf1bcdee5196db32546add669f475ee921e6 # Parent b9bce2c4fe33d000212a26f7174456d3dcea86e5 Reject new QUIC connection with CONNECTION_REFUSED on shutdown. diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c --- a/src/event/ngx_event_quic.c +++ b/src/event/ngx_event_quic.c @@ -712,6 +712,11 @@ ngx_quic_new_connection(ngx_connection_t qc->initialized = 1; + if (ngx_terminate || ngx_exiting) { + qc->error = NGX_QUIC_ERR_CONNECTION_REFUSED; + return NGX_ERROR; + } + if (pkt->token.len) { rc = ngx_quic_validate_token(c, pkt);