MINOR: tcpcheck: Don't handle anymore in-progress send rules in tcpcheck_main
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 25 Nov 2020 12:34:51 +0000 (13:34 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 27 Nov 2020 09:08:21 +0000 (10:08 +0100)
commit39066c27384653b41b95370fc4dec4469a637a23
tree1a22f0d659813f2cbafb95cc12b6cbd931ede418
parent1faf18ae3976cddfb17afa95ea447205330c821e
MINOR: tcpcheck: Don't handle anymore in-progress send rules in tcpcheck_main

The special handling of in-progress send rules at the begining of
tcpcheck_main() function can be removed. Instead, at the begining of the
tcpcheck_eval_send() function, we test is there is some data in the output
buffer. In this case, it means we are evaluating an unfinished send rule and
we can jump to the sending part, skipping the formatting part.

This patch is mandatory for a major fix on the checks and must be backported
as far as 2.2.
src/tcpcheck.c