]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: init: always ensure that global.rlimit_nofile matches actual limits
authorWilly Tarreau <w@1wt.eu>
Tue, 21 Jun 2016 09:48:18 +0000 (11:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 21 Jun 2016 16:10:50 +0000 (18:10 +0200)
commitef6354719b150a22d22e9589f163d47b112f5b20
tree29e02bea3d212bf6a9dda43b1d621c4e86ae8e19
parent9075968356738583a33fe8f9862c6fa248dceb7b
BUG/MINOR: init: always ensure that global.rlimit_nofile matches actual limits

global.rlimit_nofile contains the mxa number of file descriptors that
can be allocated, except if the user is not allowed to reach this limit,
where it still contains the initially requested value. It is important
that this value always matches what is really configured so that it is
properly reported in the stats and that we can use it later to close
all FDs without wasting time closing impossible FDs.

This fix may be backported to 1.6 and 1.5.
src/haproxy.c