]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: backend: do not try to install a mux when the connection failed
authorWilly Tarreau <w@1wt.eu>
Thu, 18 Jul 2019 14:18:20 +0000 (16:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 18 Jul 2019 14:49:11 +0000 (16:49 +0200)
commit09e0203ef40d2cd42a45a53c53ebc344a1519e50
tree9ee4b44a5da408b6be044c4883ed4f127697dc3a
parent69564b1c4999977633608e567866e624ec392171
BUG/MINOR: backend: do not try to install a mux when the connection failed

If si_connect() failed, do not try to install the mux nor to complete
the operations or add the connection to an idle list, and abort quickly
instead. No obvious side effects were identified, but continuing to
allocate some resources after something has already failed seems risky.

This was a result of a prior fix which already wanted to push this code
further : aa089d80b ("BUG/MEDIUM: server: Defer the mux init until after
xprt has been initialized.") but it ought to have pushed it even further
to maintain the error check just after si_connect().

To be backported to 2.0 and 1.9.
src/backend.c