]> git.kaiwu.me - nginx.git/commitdiff
QUIC: Fixed connection cleanup.
authorVladimir Homutov <vl@nginx.com>
Mon, 15 Jun 2020 13:59:53 +0000 (16:59 +0300)
committerVladimir Homutov <vl@nginx.com>
Mon, 15 Jun 2020 13:59:53 +0000 (16:59 +0300)
A posted event need to be deleted during the connection close.

src/event/ngx_event_quic.c

index d84ea88a7fc802a093772f01d845bad95671d9c0..9253549ca557f1955c5f993f423ab5c23011c4d2 100644 (file)
@@ -1321,6 +1321,10 @@ ngx_quic_close_quic(ngx_connection_t *c, ngx_int_t rc)
         ngx_del_timer(&qc->retransmit);
     }
 
+    if (qc->push.posted) {
+        ngx_delete_posted_event(&qc->push);
+    }
+
     ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, 0,
                    "quic part of connection is terminated");