Mercurial > hg > nginx
changeset 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 |
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 Mon Oct 26 23:58:34 2020 +0300 +++ b/src/event/ngx_event_quic.c Tue Oct 27 00:00:56 2020 +0300 @@ -2162,7 +2162,11 @@ * 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;