diff options
author | Vladimir Homutov <vl@nginx.com> | 2020-10-27 00:00:56 +0300 |
---|---|---|
committer | Vladimir Homutov <vl@nginx.com> | 2020-10-27 00:00:56 +0300 |
commit | a1473ce8b08cba7959daee8860677f70d4e36c8a (patch) | |
tree | a912306052d40e5a71300edf12e2bc5618b60ceb /src | |
parent | ddd665ca666b677a326a90e3646b8302135ff8a3 (diff) | |
download | nginx-a1473ce8b08cba7959daee8860677f70d4e36c8a.tar.gz nginx-a1473ce8b08cba7959daee8860677f70d4e36c8a.zip |
QUIC: added push event afer the address was validated.
This allows to continue processing when the anti-amplification limit was hit.
Diffstat (limited to 'src')
-rw-r--r-- | src/event/ngx_event_quic.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; |