mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04:00
BUG/MINOR: mux-h2: Be sure to have a connection to unsubcribe
When the mux is released, It must own the connection to unsubcribe. This patch must be backported to 2.0.
This commit is contained in:
parent
8abf026aff
commit
21d849f52f
1 changed files with 2 additions and 2 deletions
|
|
@ -923,9 +923,9 @@ static void h2_release(struct h2c *h2c)
|
|||
}
|
||||
if (h2c->wait_event.tasklet)
|
||||
tasklet_free(h2c->wait_event.tasklet);
|
||||
if (h2c->wait_event.events != 0)
|
||||
if (conn && h2c->wait_event.events != 0)
|
||||
conn->xprt->unsubscribe(conn, conn->xprt_ctx, h2c->wait_event.events,
|
||||
&h2c->wait_event);
|
||||
&h2c->wait_event);
|
||||
|
||||
pool_free(pool_head_h2c, h2c);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue