BUG/MINOR: checks: Rely on next I/O oriented rule when waiting for a connection
authorChristopher Faulet <cfaulet@haproxy.com>
Sat, 9 May 2020 15:34:43 +0000 (17:34 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 12 May 2020 08:06:47 +0000 (10:06 +0200)
commit97b2a8b01f2ac54e46c8e0d189963df11d61017a
treed6723dd7996426367a95536abcba03ca6351b6e4
parenta2fb0c3b6f478bcc22c428c4ed90453da3a3d53d
BUG/MINOR: checks: Rely on next I/O oriented rule when waiting for a connection

In tcpcheck_main(), when we are waiting for a connection, we must rely on the
next connect/send/expect rule to subscribe to I/O events, not on the immediate
next rule. Because, if it is a set-var or an unset-var rule, we will not
subscribe to I/O events while it is in fact mandatory because a send or an
expect rule is coming. It is required to wake-up the health check as soon as I/O
are possible, instead of hitting a timeout.

No backport needed.

(cherry picked from commit 758d48f54cc3372c2d8e7c34b926d218089c533a)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/checks.c