]> git.kaiwu.me - haproxy.git/commit
MEDIUM: config: emit warnings when changing bufsize after other sections
authorWilly Tarreau <w@1wt.eu>
Fri, 20 Nov 2026 18:23:26 +0000 (19:23 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 20 Nov 2026 18:25:53 +0000 (19:25 +0100)
commit2b7dea07a90b52e075ff49856471613621f5efbe
tree2d62ceb14c77f708dd2bb2acf0a043bd0b8a3596
parentdef1690d39305457c46b0f5a020cd7887aa8b796
MEDIUM: config: emit warnings when changing bufsize after other sections

Long ago we emitted a diag when a global section is placed after some
non-global sections, but that's not sufficient because it's even possible
to change tune.bufsize (even shrink it) and face problems such as return
directives or errorfiles loaded with a larger value not being able to be
delivered.

Let's now emit warnings when the value changes, explaining the risks,
discourage from doing so, and do that as well for tune.maxrewrite and
tune.http.maxhdr, which also impacts the ability to build HTTP replies
on the fly.
doc/configuration.txt
src/cfgparse-global.c