mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-18 18:19:39 -05: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:
parent
a324616cdb
commit
cfa30dea4e
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue