mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-11 09:37:20 +02:00
BUG/MEDIUM: checks: unsubscribe for events on the old conn-stream on connect
When a new connection is established, if an old connection is still attached to the current check, it must be detroyed. When it happens, the old conn-stream must be used to unsubscribe for events, not the new one. No backport is needed.
This commit is contained in:
parent
b3b53524ad
commit
06150e4c73
@ -1660,7 +1660,8 @@ static enum tcpcheck_eval_ret tcpcheck_eval_connect(struct check *check, struct
|
||||
/* 3- release and replace the old one on success */
|
||||
if (check->cs) {
|
||||
if (check->wait_list.events)
|
||||
cs->conn->mux->unsubscribe(cs, check->wait_list.events, &check->wait_list);
|
||||
check->cs->conn->mux->unsubscribe(check->cs, check->wait_list.events,
|
||||
&check->wait_list);
|
||||
|
||||
/* We may have been scheduled to run, and the I/O handler
|
||||
* expects to have a cs, so remove the tasklet
|
||||
|
Loading…
Reference in New Issue
Block a user