]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: mux-h1: avoid using conn->owner in uncertain areas
authorWilly Tarreau <w@1wt.eu>
Mon, 20 Apr 2026 13:36:38 +0000 (15:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 21 Apr 2026 06:45:46 +0000 (08:45 +0200)
commit2e26e427a25d19edb91e81bfabfb80b1c8ffc8a3
treea5de287b3f0341528962cf22be812f88f24db7fc
parentd93c53b0dfa7ae256c55d2c6364b8cdde412eadb
CLEANUP: mux-h1: avoid using conn->owner in uncertain areas

Some places use conn->owner to retrieve the session. It's valid because
each time it is done, it's on the frontend, though it's not always 100%
obvious and sometimes requires deep code analysis. Let's clarify these
points and even rely on an intermediary variable to make it clearer. One
case where the owner couldn't differ from the session without being NULL
was also eliminated.
src/mux_h1.c