]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: config: make MAX_PROCS configurable at build time
authorWilly Tarreau <w@1wt.eu>
Thu, 7 Feb 2019 09:39:36 +0000 (10:39 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 7 Feb 2019 14:10:19 +0000 (15:10 +0100)
commitff9c9140f4da4f14bef8c9a5955f9453d0f26c60
tree849ec6e069213ea64da07ae06240153a97f2064d
parent980855bd953c1507ae479bf1262d4ef984830066
MINOR: config: make MAX_PROCS configurable at build time

For some embedded systems, it's pointless to have 32- or even 64- large
arrays of processes when it's known that much fewer processes will be
used in the worst case. Let's introduce this MAX_PROCS define which
contains the highest number of processes allowed to run at once. It
still defaults to LONGBITS but may be lowered.
include/common/defaults.h
include/types/global.h
include/types/listener.h
src/cfgparse-global.c
src/cfgparse-listen.c
src/cfgparse.c
src/cli.c
src/haproxy.c
src/listener.c