]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: checks: Remove useless tests on the connection and conn-stream
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 26 May 2020 10:14:22 +0000 (12:14 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 26 May 2020 11:36:30 +0000 (13:36 +0200)
commitb0b8b26e164ef6c7a407e8c36ac1889efad466a8
tree9ec48b26f7bef13c2c9265d850c5b9dd4d0d916d
parent3cbdd22df5534959e2b94615815760d3c2ab6230
MINOR: checks: Remove useless tests on the connection and conn-stream

During an health check execution, the conn-stream and the conncetion may only be
NULL before the evaluation of the first rule, which is always a connect, or if
the first conn-stream allocation failed. Thus, in tcpcheck_main(), useless tests
on the conn-stream or on the connection have been removed. A comment has been
added to make it clear.

No backport needed.
src/checks.c