]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: checks: fix slow start regression after fix attempt
authorWilly Tarreau <w@1wt.eu>
Thu, 21 Nov 2013 10:50:50 +0000 (11:50 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 21 Nov 2013 14:07:55 +0000 (15:07 +0100)
commite7b73485d0a2dbf7572f78756234337d1277b46c
tree62094427e585d963eba8ab47f6c0cafc580e22cb
parentc3916a7fcada196964859cc740f171d8fa6141c5
BUG/MEDIUM: checks: fix slow start regression after fix attempt

Commit 2e99390 (BUG/MEDIUM: checks: fix slowstart behaviour when server
tracking is in use) moved the slowstart task initialization within the
health check code and leaves it unset when checks are disabled. The
problem is that it's possible to trigger slowstart from the CLI by
issuing "disable server XXX / enable server XXX" even when checks are
disabled. The result is a crash when trying to wake up the slowstart
task of that server.

Move the task initialization earlier so that it is done even if the
checks are disabled.

This patch should be backported to 1.4 since the commit above was
backported there.
src/checks.c