]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] reject unix accepts when connection limit is reached
authorWilly Tarreau <w@1wt.eu>
Sat, 28 Mar 2009 10:02:18 +0000 (11:02 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 28 Mar 2009 10:02:18 +0000 (11:02 +0100)
commit2d045597f7d3bfe781d4a948731bb6dc510bbdb8
tree4e5cdb049a39c7a93833421e5cc5aa144d1956d8
parent127334e89bb6b70631f3476769329394e7fa07c4
[BUG] reject unix accepts when connection limit is reached

unix sockets are not attached to a real frontend, so there is
no way to disable/enable the listener depending on the global
session count. For this reason, if the global maxconn is reached
and a unix socket comes in, it will just be ignored and remain
in the poll list, which will call again indefinitely.

So we need to accept then drop incoming unix connections when
the table is full.

This should not happen with clean configurations since the global
maxconn should provide enough room for unix sockets.
src/proto_uxst.c