]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] startup: set the rlimits before binding ports, not after.
authorWilly Tarreau <w@1wt.eu>
Wed, 16 Feb 2011 10:10:36 +0000 (11:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Feb 2011 10:14:30 +0000 (11:14 +0100)
commitdc23a92ee77cd591ece8c4082afefdd8bb903a72
tree82dbf9e43a306936eda39d507ee6bffbebd842a4
parentc8b11090b0f3102f2506b5617529e97a0505b7fc
[BUG] startup: set the rlimits before binding ports, not after.

As reported by the Loadbalancer.org team, it was not possible to bind
more than 1024 ports. This is because the process' limits were set after
trying to bind the sockets, which defeats their purpose.

This fix must be backported to 1.4 and 1.3.
src/haproxy.c