mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-23 13:24:30 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user