]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: checks: Handle synchronous connect when a tcpcheck is started
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 6 May 2021 14:01:18 +0000 (16:01 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 7 May 2021 10:00:56 +0000 (12:00 +0200)
commit92017a3215545c26cd9baad11a1cdfb2859acc6c
tree0cba56c8c0e30be41603d7eb07608aed37f2db7e
parent30aa0da532a9853b3ed5b89152fd57537d07ee88
BUG/MINOR: checks: Handle synchronous connect when a tcpcheck is started

A connection may be synchronously established. In the tcpcheck context, it
may be a problem if several connections come one after another. In this
case, there is no event to close the very first connection before starting
the next one. The checks is thus blocked and timed out, a L7 timeout error
is reported.

To fix the bug, when a tcpcheck is started, we immediately evaluate its
state. Most of time, nothing is performed and we must wait. But it is thus
possible to handle the result of a successfull connection.

This patch should fix the issue #1234. It must be backported as far as 2.2.
src/check.c