]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cfgparse: parse tune.recv_enough as a size
authorWilly Tarreau <w@1wt.eu>
Mon, 18 Nov 2024 18:01:28 +0000 (19:01 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 18 Nov 2024 18:01:28 +0000 (19:01 +0100)
commit2f0c6ff3a5c8205abcd9dbecf2e76c6ff4ced400
tree547534da4b651b6b813cd3ec11d6a6fd7e07cf25
parenta90a7d4d60a1c603c04449bc17efa7cec099fb82
MINOR: cfgparse: parse tune.recv_enough 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 "512k". Let's make use of parse_size_err() on it so that
units are supported. This requires to turn it to uint as well, and
since it's sometimes compared to an int, we limit its range to
0..INT_MAX.
doc/configuration.txt
include/haproxy/global-t.h
src/cfgparse-global.c