]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: global: Preset tune.max_http_hdr to its default value
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Jul 2019 07:36:45 +0000 (09:36 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Jul 2019 07:46:23 +0000 (09:46 +0200)
By default, this tune parameter is set to MAX_HTTP_HDR. This assignment is done
after the configuration parsing, when we check the configuration validity. So
during the configuration parsing, its value is 0. Now, it is set to MAX_HTTP_HDR
from the start. So, it is possible to rely on it during the configuration
parsing.

src/haproxy.c

index dd0c3ec68a4f3f72e40dfdb65ba7859867134a49..25256139e798b0cf07c1caec468b837d3c0da5f2 100644 (file)
@@ -164,6 +164,7 @@ struct global global = {
                .pattern_cache = DEFAULT_PAT_LRU_SIZE,
                .pool_low_ratio  = 20,
                .pool_high_ratio = 25,
+               .max_http_hdr = MAX_HTTP_HDR,
 #ifdef USE_OPENSSL
                .sslcachesize = SSLCACHESIZE,
 #endif