From a1473ce8b08cba7959daee8860677f70d4e36c8a Mon Sep 17 00:00:00 2001 From: Vladimir Homutov Date: Tue, 27 Oct 2020 00:00:56 +0300 Subject: QUIC: added push event afer the address was validated. This allows to continue processing when the anti-amplification limit was hit. --- src/event/ngx_event_quic.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c index 2eb54c37b..dcdea293c 100644 --- a/src/event/ngx_event_quic.c +++ b/src/event/ngx_event_quic.c @@ -2162,7 +2162,11 @@ ngx_quic_process_packet(ngx_connection_t *c, ngx_quic_conf_t *conf, * that no more Initial packets need to be exchanged */ ngx_quic_discard_ctx(c, ssl_encryption_initial); - qc->validated = 1; + + if (qc->validated == 0) { + qc->validated = 1; + ngx_post_event(&c->quic->push, &ngx_posted_events); + } } pkt->received = ngx_current_msec; -- cgit