]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: checks: completely use the connection transport layer
authorWilly Tarreau <w@1wt.eu>
Fri, 28 Sep 2012 17:39:36 +0000 (19:39 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 4 Oct 2012 22:33:14 +0000 (00:33 +0200)
commitf150317671be5374fe64c81a8cc940ca7ba8cbcf
tree684cd4fe18eab506f3981cd215e9e0025a9bb7eb
parentf4288ee4bacadeea288c3819031a37ff9d908c20
MAJOR: checks: completely use the connection transport layer

With this change, we now use the connection's transport layer to receive
and send data during health checks. It even becomes possible to send data
in multiple times, which was not possible before.

The transport layer used is the same as the one used for the traffic, unless
a specific address and/or port is specified for the checks using "port" or
"addr", in which case the transport layer defaults to raw_sock. An option
will be provided to force SSL checks on different IP/ports later.

Connection errors and timeouts are still reported.

Some situations where strerror() was able to report a precise error after
a failed connect() in the past might not be reported with as much precision
anymore, but the error message was already meaningless. During the tests,
no situation was found where a message became less precise.
src/cfgparse.c
src/checks.c