]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cfgparse: parse tune.{rcvbuf,sndbuf}.{client,server} as sizes
authorWilly Tarreau <w@1wt.eu>
Mon, 18 Nov 2024 17:45:45 +0000 (18:45 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 18 Nov 2024 17:49:01 +0000 (18:49 +0100)
commita923c723579792b9d11e9dd086b9f292ed7f58f8
tree5ac2df38fee3ee20886ad31e8e7f95a1e7550c45
parent45f9e95f2276dd712b07a241e22ef15d5e65de95
MINOR: cfgparse: parse tune.{rcvbuf,sndbuf}.{client,server} 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/cfgparse-global.c