]> git.kaiwu.me - nginx.git/commitdiff
Fixed excessive push timer firing.
authorVladimir Homutov <vl@nginx.com>
Thu, 2 Apr 2020 11:53:01 +0000 (14:53 +0300)
committerVladimir Homutov <vl@nginx.com>
Thu, 2 Apr 2020 11:53:01 +0000 (14:53 +0300)
The timer is set when an output frame is generated; there is no need to arm
it after it was fired.

src/event/ngx_event_quic.c

index 4b50bfe01be6f026ae1d935a16a86e272393d375..3c1097455b61afd1c2555c533ce7e50d0fdeaf45 100644 (file)
@@ -1764,19 +1764,15 @@ static void
 ngx_quic_push_handler(ngx_event_t *ev)
 {
     ngx_connection_t       *c;
-    ngx_quic_connection_t  *qc;
 
     ngx_log_debug0(NGX_LOG_DEBUG_EVENT, ev->log, 0, "push timer");
 
     c = ev->data;
-    qc = c->quic;
 
     if (ngx_quic_output(c) != NGX_OK) {
         ngx_quic_close_connection(c);
         return;
     }
-
-    ngx_add_timer(&qc->push, qc->tp.max_ack_delay);
 }