]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Increase control channel packet size for faster handshakes
authorSteffan Karger <steffan@karger.me>
Tue, 30 Jun 2015 19:44:56 +0000 (21:44 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 1 Jul 2015 14:51:38 +0000 (16:51 +0200)
commitfc91d4b0071178e298052078431fb86f03be84fc
treeda6b04e32ed4160481374d4e93153d7362ff3cb3
parent68eecf76978a80bd5d88e944e4ed5e42bf2fd8e4
Increase control channel packet size for faster handshakes

Instead of limiting the control channel TCP/UDP packet payload size at
'100 bytes + real control channel overhead' (~140 bytes ethernet payload),
increase the max TCP/UDP payload size to '1250 bytes - calculated overhead'
(~1210 bytes ethernet payload).

Note that this patch does *not* yield an optimal solution, but it is a
simple and rather safe change that will improve connection setup times
significantly.

v2: use the mininum value of --link-mtu and 1250 to give the user a way to
    reduce control packet size if really needed.

trac #545

Signed-off-by: Steffan Karger <steffan@karger.me>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1435693496-10931-1-git-send-email-steffan@karger.me>
URL: http://article.gmane.org/gmane.network.openvpn.devel/9841
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl.c