comparison src/event/quic/ngx_event_quic.c @ 8940:fb41e37ddeb0 quic

QUIC: decoupled path state and limitation status. The path validation status and anti-amplification limit status is actually two different variables. It is possible that validating path should not be limited (for example, when re-validating former path).
author Vladimir Homutov <vl@nginx.com>
date Mon, 13 Dec 2021 09:48:33 +0300
parents d6ef13c5fd8e
children 19e063e955bf
comparison
equal deleted inserted replaced
8939:ddd5e5c0f87d 8940:fb41e37ddeb0
1011 */ 1011 */
1012 ngx_quic_discard_ctx(c, ssl_encryption_initial); 1012 ngx_quic_discard_ctx(c, ssl_encryption_initial);
1013 1013
1014 if (qc->socket->path->state != NGX_QUIC_PATH_VALIDATED) { 1014 if (qc->socket->path->state != NGX_QUIC_PATH_VALIDATED) {
1015 qc->socket->path->state = NGX_QUIC_PATH_VALIDATED; 1015 qc->socket->path->state = NGX_QUIC_PATH_VALIDATED;
1016 qc->socket->path->limited = 0;
1016 ngx_post_event(&qc->push, &ngx_posted_events); 1017 ngx_post_event(&qc->push, &ngx_posted_events);
1017 } 1018 }
1018 } 1019 }
1019 1020
1020 if (qc->closing) { 1021 if (qc->closing) {