commit | 12c02701d304f29ca74f521cfcc5fe1bc6f3e03d | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Sep 30 16:12:31 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Sep 30 16:26:51 2021 +0200 |
tree | 6a0902624d294dd927fb07fb6c2c93ef5b65e9d8 | |
parent | 8d264387c3b44268a1cf64b9e6aef8177257f24d [diff] |
BUG/MEDIUM: lua: fix wakeup condition from sleep() A time comparison was wrong in hlua_sleep_yield(), making the sleep() code do nothing for periods of 24 days every 49 days. An arithmetic comparison was performed on now_ms instead of using tick_is_expired(). This bug was added in 1.6-dev by commit 5b8608f1e ("MINOR: lua: core: add sleep functions") so the fix should be backported to all stable versions.