diff --git a/src/haterm_init.c b/src/haterm_init.c index 0412a2f3c..c0a76494b 100644 --- a/src/haterm_init.c +++ b/src/haterm_init.c @@ -366,16 +366,18 @@ void haproxy_init_args(int argc, char **argv) ha_alert("failed to allocate a buffer.\n"); goto leave; } + hbuf_appendf(&gbuf, "global\n"); - hbuf_appendf(&gbuf, "\ttune.memory.hot-size 3145728\n"); - if (has_ssl) - hbuf_appendf(&gbuf, "\texpose-experimental-directives\n"); -#if defined(USE_LINUX_SPLICE) && defined(HA_USE_KTLS) - if (has_ssl) - hbuf_appendf(&gbuf, "\ttune.pipesize 262144\n"); -#endif } + hbuf_appendf(&gbuf, "\ttune.memory.hot-size 3145728\n"); + if (has_ssl) + hbuf_appendf(&gbuf, "\texpose-experimental-directives\n"); +#if defined(USE_LINUX_SPLICE) && defined(HA_USE_KTLS) + if (has_ssl) + hbuf_appendf(&gbuf, "\ttune.pipesize 262144\n"); +#endif + /* "global" section */ if (!hbuf_is_null(&gbuf)) hbuf_appendf(&mbuf, "%.*s\n", (int)gbuf.data, gbuf.area);