[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, 6 Jan 2008 09:55:10 +0000 (10:55 +0100)
commitc73ce2b111130bd32c0ee6874ddcf3a3bb16f795
treedda538864beeba0ed2a30821d0e1240af1d57cd2
parentc27debfe56dc1d5a163c01575e2896b48edc0d27
[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]