]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: init: fix default global settings being overwritten by -G
authorFrederic Lecaille <flecaille@haproxy.com>
Thu, 2 Jul 2026 11:55:49 +0000 (13:55 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Thu, 2 Jul 2026 11:55:49 +0000 (13:55 +0200)
commite66c2c3acdceb4de501aea551ce3ed0f76b1c846
tree42ebbf14e648d7d0be5d479577c95ca3b1372299
parent146015e58b142246b529390abd8886219460c344
BUG/MINOR: init: fix default global settings being overwritten by -G

The default global configuration tuning settings (tune.memory.hot-size,
expose-experimental-directives, and tune.pipesize) were lost when the
-G option was used.

The bug was caused by an incorrect scope: these default settings were
nested inside the block that generates the default global header, which
is skipped/overwritten when -G is provided. Fix this by closing the
conditional block early.

This patch depends on this commit:
    "01f4e33ea MINOR: hbuf: new lightweight hbuf API"

Must be backported to 3.4.
src/haterm_init.c