MINOR: tcpcheck: Don't handle anymore in-progress connect rules in tcpcheck_main
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 25 Nov 2020 15:47:30 +0000 (16:47 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 27 Nov 2020 09:29:41 +0000 (10:29 +0100)
commitb1bb069c156b6766ee0e07ab0b3ef75db57b3e5f
tree68c07dfbac04b83d71bcdd68fb1419309fc24b73
parentb381a505c1010bb11abbe7b31e8d2307c4dab541
MINOR: tcpcheck: Don't handle anymore in-progress connect rules in tcpcheck_main

The special handling of in-progress connect rules at the begining of
tcpcheck_main() function can be removed. Instead, at the begining of the
tcpcheck_eval_connect() function, we test is there is already an existing
connection. In this case, it means we are waiting for a connection
establishment. In addition, before evaluating a new connect rule, we take
care to release any previous connection.
src/check.c
src/tcpcheck.c