]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: server: Defer the mux init until after xprt has been initialized.
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 4 Jan 2019 14:52:26 +0000 (15:52 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 4 Jan 2019 16:08:47 +0000 (17:08 +0100)
commit5cd62171858d38e805604e63746da44e09e94e03
tree09295d70c888db02cf398f7cdd579a9b53def996
parent9b960a860c402ee234af8928867c71105aa25651
BUG/MEDIUM: server: Defer the mux init until after xprt has been initialized.

In connect_server(), if we're using a new connection, and we have to
initialize the mux right away, only do it so after si_connect() has been
called. si_connect() is responsible for initializing the xprt, and the
mux initialization may depend on the xprt being usable, as it may try to
receive data. Otherwise, the connection will be flagged as having an error,
and we will have to try to connect a second time.

This should be backported to 1.9.
src/backend.c