mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-19 18:38:53 +02:00
With previous commit,9e080bf("BUG/MINOR: checks: make sure fastinter is used even on forced transitions"), on-error mark-down|sudden-death|fail-check are now working as expected. However, on-error fastinter remains broken because srv_getinter(), used in the above commit to check the expiration date, won't return fastinter interval if server health is maxed out (which is the case with on-error fastinter mode). To fix this, we introduce a check flag named CHK_ST_FASTINTER. This flag is set when on-error is triggered. This way we can force srv_getinter() to return fastinter interval whenever the flag is set. The flag is automatically cleared as soon as the new check task expiry is recalculated in process_chk_conn(). This restores original behavior prior tod114f4a("MEDIUM: checks: spread the checks load over random threads"). It must be backported to 2.7 along with the aforementioned commits.