MINOR: config: reject configs using HTTP with large bufsize >= 256 MB

the bufsize was already limited to 256 MB because of Lua and HTX
limitations. So the same limit is set on large buffers.
This commit is contained in:
Christopher Faulet 2026-02-13 15:38:08 +01:00
parent a324616cdb
commit cfa30dea4e

View file

@ -2418,6 +2418,11 @@ init_proxies_list_stage1:
global.tune.bufsize);
cfgerr++;
}
if (curproxy->mode == PR_MODE_HTTP && global.tune.bufsize_large >= (256 << 20) && ONLY_ONCE()) {
ha_alert("global.tune.bufsize_large must be below 256 MB when HTTP is in use (current value = %d).\n",
global.tune.bufsize_large);
cfgerr++;
}
if (curproxy->flags & PR_FL_DISABLED) {
/* ensure we don't keep listeners uselessly bound. We