]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: checks: Subscribe to I/O events on an unfinished connect
authorChristopher Faulet <cfaulet@haproxy.com>
Sat, 9 May 2020 12:46:43 +0000 (14:46 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 12 May 2020 08:06:47 +0000 (10:06 +0200)
commit2fabd9d535898a0f9249b199853cf56deee697fa
tree3a24c423bcc691e6bbbad6d436a74ef323b24ef4
parent3e235d38ecbfbea1f7e600b6e5281b00c9c1d294
BUG/MEDIUM: checks: Subscribe to I/O events on an unfinished connect

In tcp-check based health check, when a new connection is opened, we must wait
it is really established before moving to the next rule. But at this stage, we
must also be sure to subscribe to I/O events. Otherwise, depending on the
timing, the health check may remains sleepy till the timeout.

No backport needed. This patch should fix the issue #622.

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