]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: check: Wake the check task if the check is finished in wake_srv_chk()
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 21 Jan 2019 13:15:50 +0000 (14:15 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 22 Jan 2019 06:01:15 +0000 (07:01 +0100)
commit774c486cece942570b6a9d16afe236a16ee12079
tree8c4c482a4568aef44ab020e09ec371dc744a484f
parentf57afa453a685cfd92b7a27ef6e6035cb384ff57
BUG/MINOR: check: Wake the check task if the check is finished in wake_srv_chk()

With tcp-check, the result of the check is set by the function tcpcheck_main()
from the I/O layer. So it is important to wake up the check task to handle the
result and finish the check. Otherwise, we will wait the task timeout to handle
the result of a tcp-check, delaying the next check by as much.

This patch also fixes a problem about email alerts reported by PiBa-NL (Pieter)
on the ML [1] on all versions since the 1.6. So this patch must be backported
from 1.9 to 1.6.

[1] https://www.mail-archive.com/haproxy@formilux.org/msg32190.html
src/checks.c