mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-31 23:58:16 +00:00
BUG/MEDIUM: connections: Remove the connection from the idle list before destroy.
Before calling the destroy() method, remove the connection from the idle list, so that no new session will pick it.
This commit is contained in:
parent
a49d41a9af
commit
a30a40bcca
@ -1213,7 +1213,10 @@ int connect_server(struct stream *s)
|
||||
*/
|
||||
if (old_conn && !did_switch) {
|
||||
old_conn->owner = NULL;
|
||||
old_conn->mux->destroy(old_conn);
|
||||
LIST_DEL(&old_conn->list);
|
||||
LIST_INIT(&old_conn->list);
|
||||
if (old_conn->mux)
|
||||
old_conn->mux->destroy(old_conn);
|
||||
old_conn = NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user