MINOR: checks: I/O callback function only rely on the data layer wake callback
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 28 May 2020 12:34:02 +0000 (14:34 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 28 May 2020 13:07:20 +0000 (15:07 +0200)
commit3d5e1218429f7c06122ad612bbda561030706cab
tree59a37c780bf525f547e9b56fd8f6e56f06c9c9fa
parent030ed4b73873e1d93d887d679e65b9e851ec3b1e
MINOR: checks: I/O callback function only rely on the data layer wake callback

Most of code in event_srv_chk_io() function is inherited from the checks before
the recent refactoring. Now, it is enough to only call wake_srv_chk(). Since the
refactoring, the removed code is dead and never called. wake_srv_chk() may only
return 0 if tcpcheck_main() returns 0 and the check status is unknown
(CHK_RES_UNKNOWN). When this happens, nothing is performed in event_srv_chk_io().
src/checks.c