MINOR: cfgparse: parse tune.pipesize as a size
authorWilly Tarreau <w@1wt.eu>
Mon, 18 Nov 2024 17:51:31 +0000 (18:51 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 18 Nov 2024 17:51:31 +0000 (18:51 +0100)
commita90a7d4d60a1c603c04449bc17efa7cec099fb82
tree9672c74e67279cece96c46c5437ef9b0793d60ab
parentf9f28b75848de07972ea9e6ee3b1ea3e07b95303
MINOR: cfgparse: parse tune.pipesize 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, which
was verified to be OK.
doc/configuration.txt
include/haproxy/global-t.h
src/cfgparse-global.c