changeset 8434:ea4899591798 quic

QUIC: Fixed connection cleanup. A posted event need to be deleted during the connection close.
author Vladimir Homutov <vl@nginx.com>
date Mon, 15 Jun 2020 16:59:53 +0300
parents 7672ec1e6227
children 5bc9229ec4cf
files src/event/ngx_event_quic.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/event/ngx_event_quic.c
+++ b/src/event/ngx_event_quic.c
@@ -1321,6 +1321,10 @@ ngx_quic_close_quic(ngx_connection_t *c,
         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");