]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: limits: properly account for global.maxpipes in compute_ideal_maxconn()
authorWilly Tarreau <w@1wt.eu>
Tue, 19 May 2026 13:05:52 +0000 (15:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 19 May 2026 13:19:23 +0000 (15:19 +0200)
commit0284be5456a04e49dd529fdcce0e12108f28a1f0
tree7f06fe10975be75e7c79168870e72e1409195de3
parent11bad0176084ccaaefe84abccb97c09a5d097708
BUG/MEDIUM: limits: properly account for global.maxpipes in compute_ideal_maxconn()

Starting a config with maxpipes and no maxconn always ended up in error
because the number of FDs needed for pipes was not deduced from the total
number of FDs when calculating maxconn, and was later found to exceed the
total number of allocatable FD during final checks.

When global.maxpipes is set, it must be used during compute_ideal_maxconn()
so that it's properly deduced.

Without this, just having "maxpipes 500" in a config prevents it from
starting. With the fix, it properly starts with a maxconn adjusted
depending on the number of splice-enabled proxies.

This should be backported, theoretically everywhere, but preferably
progressively. The following config should fail on affected versions
and load with fixed ones:

   global
        maxpipes 500

   frontend srv1
        bind :8001
src/limits.c