BUG/MEDIUM: mux-spop: Wait end of handshake to declare a spop connection ready
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 28 Apr 2025 06:01:40 +0000 (08:01 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 15 May 2025 15:01:43 +0000 (17:01 +0200)
commit8edbc9f62bac84bff4a3826b21c73dbb1fd149f9
treee665b7b81f26fb4a851d5f202e309962201ff2fe
parent882a38d1656dfed676cac5e8519caa507b310efe
BUG/MEDIUM: mux-spop: Wait end of handshake to declare a spop connection ready

A SPOP connection must not be considered as ready while the hello handshake
is not finished with success. In addition, no error or shutdown must have
been reported for the underlying connection. Otherwise a freshly openned
spop connexion may be reused while it is in fact dead, leading to a
connection retry.

This patch must be backported to 3.1.

(cherry picked from commit fd7ebf117bdefdcfbd1c30a079585867eb22a57d)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/mux_spop.c