]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Increase listen() backlog queue to 32
authorGert Doering <gert@greenie.muc.de>
Thu, 15 Aug 2019 15:53:19 +0000 (17:53 +0200)
committerGert Doering <gert@greenie.muc.de>
Fri, 16 Aug 2019 18:13:42 +0000 (20:13 +0200)
commitec0ca68f4ed1e6aa6f08f470b18e0198b7e5a4da
treed8936632710cebd44cfac540afaff536a555ec87
parent94157cb368d850032d7c6f436499738ed8bd7834
Increase listen() backlog queue to 32

For reasons historically unknown, OpenVPN sets the listen() backlog
queue to "1", which signals the kernel "while there is one TCP connect
waiting for OpenVPN to handle it, refuse all others" - which, on
restarting a busy TCP server, will create connection issues.

The exact "best" value of the backlog queue is subject of discussion,
but for a server that is not extremely busy with many connections
coming in in parallel, there is no real difference between "10" or "500",
as long as it's "more than 1".

Found and debugged by "mjo" in Trac.

Trac: #1208

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Antonio Quartulli <antonio@openvpn.net>
Acked-by: David Sommerseth <davids@openvpn.net>
Message-Id: <20190815155319.28249-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18758.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 6d8380c78bf77766454b93b49ab2ebf713b0be48)
src/openvpn/socket.c