]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: stats-file: manipulate shm-stats-file heartbeat using unsigned int
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 19 Feb 2026 13:59:52 +0000 (14:59 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 19 Feb 2026 15:13:55 +0000 (16:13 +0100)
commit2b7849fd027525c6c6c536753dfe76323bd99735
tree49509756cbb847eed07d1113f25e8b6c4c61a948
parent04a4d242c9d3be576745ca3765ca2fbc3776b449
BUG/MINOR: stats-file: manipulate shm-stats-file heartbeat using unsigned int

shm-stats-file heartbeat is derived from now_ms with an extra time added
to it, thus it should be handled using the same time as now_ms is.

Until now, we used to handle heartbeat using signed integer. This was not
found to cause severe harm but it could result in improper handling due
to early wrapping because of signedness for instance, so let's better fix
that before it becomes a real issue.

It should be backported in 3.3
include/haproxy/stats-file-t.h
src/stats-file.c