]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cfgparse: parse tune.bufsize.small as a size
authorWilly Tarreau <w@1wt.eu>
Mon, 18 Nov 2024 18:07:05 +0000 (19:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 18 Nov 2024 18:07:05 +0000 (19:07 +0100)
commite72b52583202797e7b7f71ff74ffe48b7013fd1d
treef2a5a1773650a3be972d46a9d8ac5bac6e5eb188
parenta344d37fadecaa20da046585654571920fa393ea
MINOR: cfgparse: parse tune.bufsize.small as a size

Till now this value was parsed as raw integer using atol() and would
silently ignore any trailing suffix, causing unexpected behaviors when
set, e.g. to "4k". Let's make use of parse_size_err() on it so that
units are supported. This requires to turn it to uint as well, which
was verified to be OK.
doc/configuration.txt
include/haproxy/global-t.h
src/dynbuf.c