]> git.kaiwu.me - nginx.git/commitdiff
QUIC: added push event afer the address was validated.
authorVladimir Homutov <vl@nginx.com>
Mon, 26 Oct 2020 21:00:56 +0000 (00:00 +0300)
committerVladimir Homutov <vl@nginx.com>
Mon, 26 Oct 2020 21:00:56 +0000 (00:00 +0300)
This allows to continue processing when the anti-amplification limit was hit.

src/event/ngx_event_quic.c

index 2eb54c37b86579e2ba16ef2e6bb30cb53e13790e..dcdea293cf76c004a26e446a4db106b4fbf895fb 100644 (file)
@@ -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;