Mercurial > hg > nginx-quic
comparison src/event/ngx_event_quic.c @ 7938:3b5fbf1bcdee quic
Reject new QUIC connection with CONNECTION_REFUSED on shutdown.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 23 Jun 2020 11:57:00 +0300 |
parents | b9bce2c4fe33 |
children | df29219988bc |
comparison
equal
deleted
inserted
replaced
7937:b9bce2c4fe33 | 7938:3b5fbf1bcdee |
---|---|
710 return NGX_ERROR; | 710 return NGX_ERROR; |
711 } | 711 } |
712 | 712 |
713 qc->initialized = 1; | 713 qc->initialized = 1; |
714 | 714 |
715 if (ngx_terminate || ngx_exiting) { | |
716 qc->error = NGX_QUIC_ERR_CONNECTION_REFUSED; | |
717 return NGX_ERROR; | |
718 } | |
719 | |
715 if (pkt->token.len) { | 720 if (pkt->token.len) { |
716 rc = ngx_quic_validate_token(c, pkt); | 721 rc = ngx_quic_validate_token(c, pkt); |
717 | 722 |
718 if (rc == NGX_ERROR) { | 723 if (rc == NGX_ERROR) { |
719 ngx_log_error(NGX_LOG_INFO, c->log, 0, "quic invalid token"); | 724 ngx_log_error(NGX_LOG_INFO, c->log, 0, "quic invalid token"); |