diff options
| author | David Lönnhager <david.l@mullvad.net> | 2023-04-14 12:57:33 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2023-04-17 16:36:02 +0200 |
| commit | c13395e4732018a9a6fe2f4d1eb75bf243524cad (patch) | |
| tree | 8851a029e104e513b19368583a37f1e0304104ee | |
| parent | a2cb7c9a0cb95a439a98bff8baf491734536dfac (diff) | |
| download | mullvadvpn-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.rs | 4 |
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. |
