]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: threads: Initialize maxthrpertgroup earlier.
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 6 Feb 2026 01:49:26 +0000 (02:49 +0100)
committerOlivier Houchard <ohouchard@haproxy.com>
Fri, 6 Feb 2026 02:01:36 +0000 (03:01 +0100)
commit9766211cf05738a9245a5f4a76bc14343463facc
tree4b2c00cb4404102471c1bad2fe7db4c707db79a6
parent9e023ae9307cadc896170cbecc969b832acd59dd
BUG/MINOR: threads: Initialize maxthrpertgroup earlier.

Give global.maxthrpertgroup its default value at global creation,
instead of later when we're trying to detect the thread count.
It is used when verifying the configuration file validity, and if it was
not set in the config file, in a few corner cases, the value of 0 would
be used, which would then reject perfectly fine configuration files.

This should be backported to 3.3.
src/haproxy.c
src/thread.c