Mercurial > hg > nginx-quic
changeset 8170: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 |
files | src/event/ngx_event_quic.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 * 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;