mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-02-14 05:41:09 +01:00
[BUG] variable buffer size ignored at initialization time
Commit 27a674efb84bde8c045b87c9634f123e2f8925dc introduced the ability to configure buffer sizes. Unfortunately, the pool was created before the conf was read, so that is was always set to the default size. In order to fix that, we delay the call to init_buffer(), which is not a problem since nothing uses it during the initialization.
This commit is contained in:
parent
0960541e49
commit
8280d64961
@ -404,7 +404,7 @@ void init(int argc, char **argv)
|
||||
signal_init();
|
||||
init_task();
|
||||
init_session();
|
||||
init_buffer();
|
||||
/* warning, we init buffers later */
|
||||
init_pendconn();
|
||||
init_proto_http();
|
||||
|
||||
@ -556,6 +556,9 @@ void init(int argc, char **argv)
|
||||
exit(0);
|
||||
}
|
||||
|
||||
/* now we know the buffer size, we can initialize the buffers */
|
||||
init_buffer();
|
||||
|
||||
if (have_appsession)
|
||||
appsession_init();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user