]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: clock: automatically adjust the internal clock with the boot time
authorWilly Tarreau <w@1wt.eu>
Tue, 16 May 2023 17:19:36 +0000 (19:19 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 17 May 2023 07:33:54 +0000 (09:33 +0200)
commitc7b9308f20909e4eca2257dd2134f537e89cffec
tree2f586c9e4554de773c7edf1cf80f972139b94251
parent5345490b8e0a3c82587fd1ccf30244035cf0b1d5
BUG/MINOR: clock: automatically adjust the internal clock with the boot time

This is a better and more general solution to the problem described in
this commit:

    BUG/MINOR: checks: postpone the startup of health checks by the boot time

Now we're updating the now_offset that is used to compute now_ms at the
few points where we update the ready date during boot. This ensures that
now_ms while being stable during all the boot process will be correct
and will start with the boot value right after the boot is finished. As
such the patch above is rolled back (we don't want to count the boot
time twice).

This must not be backported because it relies on the more flexible clock
architecture in 2.8.
src/check.c
src/haproxy.c