[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:
Willy Tarreau 2009-09-23 23:37:52 +02:00
parent 0960541e49
commit 8280d64961

View File

@ -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();