]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Apply the connect-retry backoff to only one side of a connection
authorSelva Nair <selva.nair@gmail.com>
Wed, 2 Jun 2021 19:47:39 +0000 (15:47 -0400)
committerGert Doering <gert@greenie.muc.de>
Thu, 17 Jun 2021 08:07:42 +0000 (10:07 +0200)
commit7029cece844d9324aff687981b8b6c33b099db2d
tree5b8aedc6ef982d433fdceff06a7a6d3efa52422d
parent5e272a0196f3a9ac9423397079779ac8bbdf6159
Apply the connect-retry backoff to only one side of a connection

p2p connections with both ends backing off seldom succeed
as their connection attempt durations becomes increasingly
unlikely to overlap when the retry wait time is long.

Avoid this by applying the backoff logic only on TCP clients
or the tls_client side for UDP.

Regression warning: shared secret setups are left out of the
backoff logic.

Trac: #1010, #1384

Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20210602194739.29488-1-selva.nair@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22485.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 063d55afeea723fc6df0af29a19df257a8ab6920)
src/openvpn/init.c