MEDIUM: chunks: Realloc trash buffers only after the config is parsed and checked
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 29 Aug 2017 14:46:57 +0000 (16:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 5 Sep 2017 08:27:46 +0000 (10:27 +0200)
commit3ef26398703a8f83a710278df8ec585ada161184
treef1c3579301af126d42a5f32a5a20268029df7c4b
parent748919a4c75495bc6464e82b52dd9b71cbbc23ca
MEDIUM: chunks: Realloc trash buffers only after the config is parsed and checked

Trash buffers are reallocated when "tune.bufsize" parameter is changed. Here, we
just move the realloc after the configuration parsing.

Given that the config parser doesn't rely on the trash size, it should be
harmless.
src/cfgparse.c
src/haproxy.c