]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: email-alert: don't set server check status from a email-alert task
authorPiBa-NL <pba_2k3@yahoo.com>
Wed, 6 Dec 2017 00:35:43 +0000 (01:35 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 8 Dec 2017 04:58:56 +0000 (05:58 +0100)
commit1714b9f28694d750d446917672dd59c46e16afd7
tree86fc4e7b7d0d2223452bda629bf2e76027067bba
parentf2b5d75ae27eb4f19c0c528550ef0edc39996c88
BUG/MEDIUM: email-alert: don't set server check status from a email-alert task

This avoids possible 100% cpu usage deadlock on a EMAIL_ALERTS_LOCK and
avoids sending lots of emails when 'option log-health-checks' is used.
It is avoided to change the server state and possibly queue a new email
while processing the email alert by setting check->status to
HCHK_STATUS_UNKNOWN which will exit the set_server_check_status(..) early.

This needs to be backported to 1.8.
src/checks.c