]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: make SO_REUSEPORT configurable
authorLukas Tribus <luky-37@hotmail.com>
Mon, 12 Sep 2016 21:42:20 +0000 (21:42 +0000)
committerWilly Tarreau <w@1wt.eu>
Tue, 13 Sep 2016 05:56:03 +0000 (07:56 +0200)
commita0bcbdcb04d52c3ca71045f90aac33d9dd7965bf
tree79e004c787b9d6e00195d1e68ba7ba2f06859723
parent255cc5184dc8483e4377d9de25670bd6e226cdba
MEDIUM: make SO_REUSEPORT configurable

With Linux officially introducing SO_REUSEPORT support in 3.9 and
its mainstream adoption we have seen more people running into strange
SO_REUSEPORT related issues (a process management issue turning into
hard to diagnose problems because the kernel load-balances between the
new and an obsolete haproxy instance).

Also some people simply want the guarantee that the bind fails when
the old process is still bound.

This change makes SO_REUSEPORT configurable, introducing the command
line argument "-dR" and the noreuseport configuration directive.

A backport to 1.6 should be considered.
doc/configuration.txt
include/types/global.h
src/cfgparse.c
src/haproxy.c
src/proto_tcp.c