MINOR: cfgparse: parse tune.{rcvbuf,sndbuf}.{frontend,backend} as sizes
authorWilly Tarreau <w@1wt.eu>
Mon, 18 Nov 2024 17:50:02 +0000 (18:50 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 18 Nov 2024 17:50:02 +0000 (18:50 +0100)
commitf9f28b75848de07972ea9e6ee3b1ea3e07b95303
tree2d706898bc3359a4db208accf300b91b695f100c
parenta923c723579792b9d11e9dd086b9f292ed7f58f8
MINOR: cfgparse: parse tune.{rcvbuf,sndbuf}.{frontend,backend} as sizes

Till now these values were 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 them so that
units are supported. This requires to turn them to uint as well, which
is OK.
doc/configuration.txt
include/haproxy/global-t.h
src/dgram.c