]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: config: Relax tests on the configured size of small buffers
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 10 Mar 2026 17:48:05 +0000 (18:48 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 23 Mar 2026 13:02:42 +0000 (14:02 +0100)
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

index f36e5719d4b3619c7e8f18ae5dfa1849f4699bc2..2b415db0395266da192775f71dfdac90e05512f2 100644 (file)
@@ -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;
                }
        }