BUG/MINOR: tcpcheck: Properly detect pending HTTP data in output buffer
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 11 Aug 2021 13:46:29 +0000 (15:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 12 Aug 2021 15:08:53 +0000 (17:08 +0200)
commitd28f06cfa162efdf958dc0a795e2700d6942a899
treeb560ba56ca1b9b6b8596750160e3238a4e5c9dae
parent7ddad235aa415f8cb63faf4ea2cc2bd13fa27fff
BUG/MINOR: tcpcheck: Properly detect pending HTTP data in output buffer

In tcpcheck_eval_send(), the condition to detect there are still pending
data in the output buffer is buggy. Presence of raw data must be tested for
TCP connection only. But a condition on the connection was missing to be
sure it is not an HTX connection.

This patch must be backported as far as 2.2.

(cherry picked from commit 47bfd7b9b78c71ffa08d65f0cef475f5d2ae7b80)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 18280ca240afe28f79a1bbfa5c8f6949230bfe1c)
[wt: ctx adj: no trace in 2.3]
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/tcpcheck.c