]> git.kaiwu.me - haproxy.git/commit
MEDIUM: session: always reset the conn->owner on backend when installing mux
authorWilly Tarreau <w@1wt.eu>
Mon, 20 Apr 2026 12:05:09 +0000 (14:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 21 Apr 2026 06:45:46 +0000 (08:45 +0200)
commitd93c53b0dfa7ae256c55d2c6364b8cdde412eadb
tree8b228b9207e8fc2a3ac068b118e4ed252b0fe3ac
parent90b2154d930ea8985d0083c703bff2c46171dd41
MEDIUM: session: always reset the conn->owner on backend when installing mux

When installing a mux on the backend, unless we have a good reason for
keeping the session set in conn->owner, we must reset it. Having the
session there just hides potential bugs and prevents certain tests from
being properly done.

Now it is much clearer: conn->owner remains set to the session on
frontend connections, is set to the session when the connection is
private or assimilated private and belongs to the session list, or
is NULL.
src/connection.c