mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-08 22:37:27 +00:00
[BUG] variable buffer size ignored at initialization time
Commit 27a674efb8
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…
Reference in New Issue
Block a user