# HG changeset patch # User Vladimir Homutov # Date 1592229593 -10800 # Node ID ea48995917980ee87c2e5947430b857dde8db4c6 # Parent 7672ec1e622710dfe0fcc35e7cd06623a75c3a72 QUIC: Fixed connection cleanup. A posted event need to be deleted during the connection close. diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c --- 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");