]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: clock: provide a function to automatically adjust now_offset
authorWilly Tarreau <w@1wt.eu>
Tue, 16 May 2023 17:01:55 +0000 (19:01 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 17 May 2023 07:33:54 +0000 (09:33 +0200)
commit5345490b8e0a3c82587fd1ccf30244035cf0b1d5
tree4e3eff978cdeec928b8fe6255de5f13c1d5c297f
parent8e978a094d24a7835790da6be6c94e38f9888026
MINOR: clock: provide a function to automatically adjust now_offset

Right now there's no way to enforce a specific value of now_ms upon
startup in order to compensate for the time it takes to load a config,
specifically when dealing with the health check startup. For this we'd
need to force the now_offset value to compensate for the last known
value of the current date. This patch exposes a function to do exactly
this.
include/haproxy/clock.h
src/clock.c