mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-04 19:19:33 +00:00
BUG/MINOR: mux-fcgi: Be sure to have a connection to unsubcribe
When the mux is released, It must own the connection to unsubcribe. This patch fixes the issue #283. No backport needed.
This commit is contained in:
parent
21d849f52f
commit
a99db937c5
@ -576,7 +576,7 @@ static void fcgi_release(struct fcgi_conn *fconn)
|
|||||||
}
|
}
|
||||||
if (fconn->wait_event.tasklet)
|
if (fconn->wait_event.tasklet)
|
||||||
tasklet_free(fconn->wait_event.tasklet);
|
tasklet_free(fconn->wait_event.tasklet);
|
||||||
if (fconn->wait_event.events != 0)
|
if (conn && fconn->wait_event.events != 0)
|
||||||
conn->xprt->unsubscribe(conn, conn->xprt_ctx, fconn->wait_event.events,
|
conn->xprt->unsubscribe(conn, conn->xprt_ctx, fconn->wait_event.events,
|
||||||
&fconn->wait_event);
|
&fconn->wait_event);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user