]> git.kaiwu.me - haproxy.git/commit
MEDIUM: backend: always release any existing prior connection in connect_server()
authorWilly Tarreau <w@1wt.eu>
Thu, 18 Jul 2019 16:40:06 +0000 (18:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 19 Jul 2019 11:50:09 +0000 (13:50 +0200)
commita5797aab11e8b49567251fa4a31caf44214a1566
tree896704aad172599f5a379bd90b98018dcf28e8ad
parent5a0b25d31c2bd003caec8e2abb1bdb03b4ba607e
MEDIUM: backend: always release any existing prior connection in connect_server()

When entering connect_server() we're not supposed to have a connection
already, except when retrying a failed connection, which is pretty rare.
Let's simplify the code by starting to unconditionally release any existing
connection. For now we don't go further, as this change alone will lead to
quite some simplification that'd rather be done as a separate cleanup.
src/backend.c