]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: startup: move global.maxconn calculations in limits.c
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Mon, 25 Nov 2024 09:10:19 +0000 (10:10 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 16 Dec 2024 09:44:01 +0000 (10:44 +0100)
commit1332e9b58d3fef8886bdd200803de9c6735fd887
tree5b80c47b1ad4f5b3f3fdcc24426a6b02b6180bc1
parent949bc18f660d860b9102360d2b98d0c96e60266c
REORG: startup: move global.maxconn calculations in limits.c

Let's encapsulate the code, which calculates global.maxconn and
global.maxsslconn into a dedicated function set_global_maxconn() and let's
move this function in limits.c. In limits.c we keep helpers to calculate and
check haproxy internal limits, based on the system nofile and memory limits.
include/haproxy/limits.h
src/haproxy.c
src/limits.c