diff --git a/src/haproxy.c b/src/haproxy.c index 237fa253b..e448f4f1d 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -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();