mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00:00
Reject new QUIC connection with CONNECTION_REFUSED on shutdown.
This commit is contained in:
parent
1cfd67c44a
commit
157da97d7a
1 changed files with 5 additions and 0 deletions
|
|
@ -712,6 +712,11 @@ ngx_quic_new_connection(ngx_connection_t *c, ngx_ssl_t *ssl, ngx_quic_tp_t *tp,
|
|||
|
||||
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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue