]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: connections: Only avoid creating a mux if we have one
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 2 Oct 2025 12:02:03 +0000 (14:02 +0200)
committerOlivier Houchard <cognet@ci0.org>
Fri, 3 Oct 2025 11:13:10 +0000 (13:13 +0200)
commitb01a00acb15ef5a321d8e51e8491b83a586f363d
tree845d88d531591493dc43dc4cae1f5d5e7bf72b4b
parentd0084cb873257a76da9a9fc7e485ef9fdfb65d77
BUG/MEDIUM: connections: Only avoid creating a mux if we have one

In connect_server(), only avoid creating a mux when we're reusing a
connection, if that connection already has one. We can reuse a
connection with no mux, if we made a first attempt at connecting to the
server and it failed before we could create the mux (or during the mux
creation). The connection will then be reused when trying again.
This fixes a bug where a stream could stall if the first connection
attempt failed before the mux creation. It is easy to reproduce by
creating random memory allocation failure with -dmFail.
This was introduced by commit 4aaf0bfbced22d706af08725f977dcce9845d340,
and thus does not need any backport as long as that commit is not
backported.
src/backend.c