]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: checks: fix conflicts between agent checks and ssl healthchecks
authorCyril Bonté <cyril.bonte@free.fr>
Sat, 15 Nov 2014 21:41:27 +0000 (22:41 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 15 Nov 2014 23:53:12 +0000 (00:53 +0100)
commit9ce1311ebc834e20addc7a8392c0fc4e4ad687b7
treee9054e273abc034ed4e392ba0505441808fc58be
parenteb11889f1e2002a7d5709db9d4b2979651108bee
BUG/MEDIUM: checks: fix conflicts between agent checks and ssl healthchecks

Lasse Birnbaum Jensen reported an issue when agent checks are used at the same
time as standard healthchecks when SSL is enabled on the server side.

The symptom is that agent checks try to communicate in SSL while it should
manage raw data. This happens because the transport layer is shared between all
kind of checks.

To fix the issue, the transport layer is now stored in each check type,
allowing to use SSL healthchecks when required, while an agent check should
always use the raw_sock implementation.

The fix must be backported to 1.5.
include/types/checks.h
include/types/server.h
src/checks.c
src/server.c
src/ssl_sock.c