mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-29 14:50:59 +01:00
BUG/MEDIUM: sessions: Always pass the mux context as argument to destroy a mux
This bug was introduced by the commit 2444aa5b ("MEDIUM: sessions: Don't be
responsible for connections anymore."). In session_check_idle_conn(), when the
mux is destroyed, its context must be passed as argument instead of the
connection.
It is de 2.2-dev bug. No need to backport.
This commit is contained in:
parent
4a8c026117
commit
bfb0f72d52
@ -126,7 +126,7 @@ static inline int session_check_idle_conn(struct session *sess, struct connectio
|
|||||||
session_unown_conn(sess, conn);
|
session_unown_conn(sess, conn);
|
||||||
conn->owner = NULL;
|
conn->owner = NULL;
|
||||||
conn->flags &= ~CO_FL_SESS_IDLE;
|
conn->flags &= ~CO_FL_SESS_IDLE;
|
||||||
conn->mux->destroy(conn);
|
conn->mux->destroy(conn->ctx);
|
||||||
return -1;
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
conn->flags |= CO_FL_SESS_IDLE;
|
conn->flags |= CO_FL_SESS_IDLE;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user