MINOR: check: do not increment global maxsock at runtime
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 29 Jul 2021 13:39:43 +0000 (15:39 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 6 Aug 2021 09:08:24 +0000 (11:08 +0200)
commit403dce8e5a912bb3d2d78b62e3252b294d894de5
treee45b333f48c03e02d0d4264de015b0e238ed116e
parent3c2ab1a0d439b289f2bb7f7cbf68f5b4646a5d8d
MINOR: check: do not increment global maxsock at runtime

global maxsock is used to estimate a number of fd to reserve for
internal use, such as checks. It is incremented at startup with the info
from the config file.

Disable this incrementation in checks functions at runtime. First, it
currently serves no purpose to increment it after startup. Worse, it may
lead to out-of-bound accesse on the fdtab.

This will be useful to initiate checks for dynamic servers.
src/check.c