On 2021-03-30 15:13, Willy Tarreau wrote:

diff --git a/src/time.c b/src/time.c
index 0cfc9bf3c..fafe3720e 100644
--- a/src/time.c
+++ b/src/time.c
@@ -268,7 +268,7 @@ void tv_update_date(int max_wait, int interrupted)
        old_now_ms = global_now_ms;
        do {
                new_now_ms = old_now_ms;
-               if (tick_is_lt(new_now_ms, now_ms))
+               if (tick_is_lt(new_now_ms, now_ms) || !new_now_ms)
                        new_now_ms = now_ms;
} while (!_HA_ATOMIC_CAS(&global_now_ms, &old_now_ms, new_now_ms));

Do I need to apply this on top of the other fixes? Or should this be done on the vanilla 2.2.11?

Sander

Attachment: 0x2E78FBE8.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to