summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2023-04-14 12:57:33 +0200
committerDavid Lönnhager <david.l@mullvad.net>2023-04-17 16:36:02 +0200
commitc13395e4732018a9a6fe2f4d1eb75bf243524cad (patch)
tree8851a029e104e513b19368583a37f1e0304104ee
parenta2cb7c9a0cb95a439a98bff8baf491734536dfac (diff)
downloadmullvadvpn-c13395e4732018a9a6fe2f4d1eb75bf243524cad.tar.xz
mullvadvpn-c13395e4732018a9a6fe2f4d1eb75bf243524cad.zip
Use more pessimistic timeouts for PSK exchange (due to the large payload)
-rw-r--r--talpid-wireguard/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/talpid-wireguard/src/lib.rs b/talpid-wireguard/src/lib.rs
index ffe556089d..3d542641b7 100644
--- a/talpid-wireguard/src/lib.rs
+++ b/talpid-wireguard/src/lib.rs
@@ -121,8 +121,8 @@ pub struct WireguardMonitor {
obfuscator: Arc<AsyncMutex<Option<ObfuscatorHandle>>>,
}
-const INITIAL_PSK_EXCHANGE_TIMEOUT: Duration = Duration::from_secs(4);
-const MAX_PSK_EXCHANGE_TIMEOUT: Duration = Duration::from_secs(15);
+const INITIAL_PSK_EXCHANGE_TIMEOUT: Duration = Duration::from_secs(8);
+const MAX_PSK_EXCHANGE_TIMEOUT: Duration = Duration::from_secs(48);
const PSK_EXCHANGE_TIMEOUT_MULTIPLIER: u32 = 2;
/// Simple wrapper that automatically cancels the future which runs an obfuscator.