]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: limits: keep a copy of the rough estimate of needed FDs in global struct
authorWilly Tarreau <w@1wt.eu>
Thu, 20 Nov 2025 07:29:45 +0000 (08:29 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 20 Nov 2025 07:44:52 +0000 (08:44 +0100)
commit91d4f4f618bed38071e6933ef0927f1671fb6c88
treea7640481bfb91e8b411e34598b495f2856502aa8
parent2c6720a163cf2dc67f8fd42b99f10eb6ca718f8e
MINOR: limits: keep a copy of the rough estimate of needed FDs in global struct

It's always a pain to guess the number of FDs that can be needed by
listeners, checks, threads, pollers etc. We have this estimate in
global.maxsock before calling set_global_maxconn(), but we lose it
the line after. Let's copy it into global.est_fd_usage and keep it.
This will be helpful to try to provide more accurate suggestions for
maxconn.
include/haproxy/global-t.h
src/haproxy.c
src/limits.c