mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-22 21:56:55 +00:00
BUG/MINOR: mux-quic: unsubscribe on release
Unsubscribe from lower layer on qc_release. This ensures that the lower layer won't wake up a null tasklet after the MUX has been released and may prevent a crash.
This commit is contained in:
parent
89a2ceb1fb
commit
f3e03a4066
@ -518,6 +518,11 @@ static void qc_release(struct qcc *qcc)
|
||||
|
||||
if (qcc->wait_event.tasklet)
|
||||
tasklet_free(qcc->wait_event.tasklet);
|
||||
if (conn && qcc->wait_event.events) {
|
||||
conn->xprt->unsubscribe(conn, conn->xprt_ctx,
|
||||
qcc->wait_event.events,
|
||||
&qcc->wait_event);
|
||||
}
|
||||
|
||||
/* liberate remaining qcs instances */
|
||||
node = eb64_first(&qcc->streams_by_id);
|
||||
|
Loading…
Reference in New Issue
Block a user