]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: spoe/tcpcheck: Reintroduce SPOP check as a customized tcp-check
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 22 Jul 2024 17:00:42 +0000 (19:00 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 24 Jul 2024 12:19:10 +0000 (14:19 +0200)
commit51e18c9aa6ecc0e10af51c99f111720538c7177e
tree14a8b011c351ba78db37ad0086e858bb8ac9056a
parent2f3c4d1b6c34f11b66dec682712ff32ac6b84818
MEDIUM: spoe/tcpcheck: Reintroduce SPOP check as a customized tcp-check

To be able to retrieve accurrate errors when a SPOP health-check is
performed, a customized tcp-check is used. Indeed, it is not possible to
rely on the SPOP multiplexer for now because the check is performed at the
mux connection layer and the error, if any, cannot be retrieved by the
health-check. A L4 success or error is reported.

To fix this issue and restore the previous behavior, a customized tcp-check
is created. The connection is forced to use the PT multiplexer. An hardcoded
message is sent and a customer handler is used to decode the SPOA response.
This way, it is possible to parse the response and return an accurrate
status code.
src/tcpcheck.c