comparison src/event/ngx_event_quic.c @ 8611:e2086d8181fa quic

QUIC: added push event afer the address was validated. This allows to continue processing when the anti-amplification limit was hit.
author Vladimir Homutov <vl@nginx.com>
date Tue, 27 Oct 2020 00:00:56 +0300
parents 7a9ab6f7cea3
children b1676cd64dc9
comparison
equal deleted inserted replaced
8610:7a9ab6f7cea3 8611:e2086d8181fa
2160 /* 2160 /*
2161 * 4.10.1. The successful use of Handshake packets indicates 2161 * 4.10.1. The successful use of Handshake packets indicates
2162 * that no more Initial packets need to be exchanged 2162 * that no more Initial packets need to be exchanged
2163 */ 2163 */
2164 ngx_quic_discard_ctx(c, ssl_encryption_initial); 2164 ngx_quic_discard_ctx(c, ssl_encryption_initial);
2165 qc->validated = 1; 2165
2166 if (qc->validated == 0) {
2167 qc->validated = 1;
2168 ngx_post_event(&c->quic->push, &ngx_posted_events);
2169 }
2166 } 2170 }
2167 2171
2168 pkt->received = ngx_current_msec; 2172 pkt->received = ngx_current_msec;
2169 2173
2170 c->log->action = "handling payload"; 2174 c->log->action = "handling payload";