]> 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>
Sun, 4 Oct 2015 20:01:27 +0000 (22:01 +0200)
commit29b65ffdb2e7ed3d3b7bcac4048f6cd919ed13b3
tree54e179523737fae016cae93791b2fc0423d7abb5
parentad71fe5f79ffbd4c86afa79d4559b08617b41dfb
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>
(cherry picked from commit fc91d4b0071178e298052078431fb86f03be84fc)
src/openvpn/ssl.c