From: Christopher Faulet Date: Tue, 10 Mar 2026 17:48:05 +0000 (+0100) Subject: MINOR: config: Relax tests on the configured size of small buffers X-Git-Tag: v3.4-dev8~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b71f70d548f024f2c4ec499ecde639310ee05dd9;p=thirdparty%2Fhaproxy.git MINOR: config: Relax tests on the configured size of small buffers When small buffer size was greater than the default buffer size, an error was triggered. We now do the same than for large buffer. A warning is emitted and the small buffer size is set to 0 do disable small buffer allocation. --- diff --git a/src/cfgparse.c b/src/cfgparse.c index f36e5719d..2b415db03 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -2328,8 +2328,8 @@ int check_config_validity() else if (global.tune.bufsize_small > global.tune.bufsize) { ha_warning("invalid small buffer size %d bytes which is greater to default bufsize %d bytes.\n", global.tune.bufsize_small, global.tune.bufsize); - err_code |= ERR_FATAL | ERR_ABORT; - goto out; + global.tune.bufsize_small = 0; + err_code |= ERR_WARN; } }