From b71f70d548f024f2c4ec499ecde639310ee05dd9 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 10 Mar 2026 18:48:05 +0100 Subject: [PATCH] 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. --- src/cfgparse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } }