MINOR: global: Preset tune.max_http_hdr to its default value

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.
This commit is contained in:
Christopher Faulet 2019-07-19 09:36:45 +02:00
parent 87f1f3d60b
commit 41ba36f8b2

View File

@ -164,6 +164,7 @@ struct global global = {
.pattern_cache = DEFAULT_PAT_LRU_SIZE, .pattern_cache = DEFAULT_PAT_LRU_SIZE,
.pool_low_ratio = 20, .pool_low_ratio = 20,
.pool_high_ratio = 25, .pool_high_ratio = 25,
.max_http_hdr = MAX_HTTP_HDR,
#ifdef USE_OPENSSL #ifdef USE_OPENSSL
.sslcachesize = SSLCACHESIZE, .sslcachesize = SSLCACHESIZE,
#endif #endif