mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 14:51:27 +02: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)
|
if (qcc->wait_event.tasklet)
|
||||||
tasklet_free(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 */
|
/* liberate remaining qcs instances */
|
||||||
node = eb64_first(&qcc->streams_by_id);
|
node = eb64_first(&qcc->streams_by_id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user