]> git.kaiwu.me - haproxy.git/commit
[MINOR] add support for the "backlog" parameter
authorWilly Tarreau <w@1wt.eu>
Sun, 6 Jan 2008 09:55:10 +0000 (10:55 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 20 Jan 2008 22:43:11 +0000 (23:43 +0100)
commit41f6aa77c5582d0c4acd5af753a613ca022b2c2f
tree61b676aefeda28b7a1858ff00019e27b298353d8
parent4cd71fd920f90ebd8939f22fada08d4fdc6fa486
[MINOR] add support for the "backlog" parameter

Add the "backlog" parameter to frontends, to give hints to
the system about the approximate listen backlog desired size.

In order to protect against SYN flood attacks, one solution is
to increase the system's SYN backlog size. Depending on the
system, sometimes it is just tunable via a system parameter,
sometimes it is not adjustable at all, and sometimes the system
relies on hints given by the application at the time of the
listen() syscall. By default, HAProxy passes the frontend's
maxconn value to the listen() syscall. On systems which can
make use of this value, it can sometimes be useful to be able
to specify a different value, hence this backlog parameter.
doc/configuration.txt
include/types/protocols.h
include/types/proxy.h
src/cfgparse.c
src/proto_tcp.c
src/proxy.c
tests/test-backlog.cfg [new file with mode: 0644]