diff options
| -rw-r--r-- | ios/MullvadVPN/TunnelManager/TunnelManager.swift | 2 | ||||
| -rw-r--r-- | mullvad-daemon/src/device/service.rs | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/ios/MullvadVPN/TunnelManager/TunnelManager.swift b/ios/MullvadVPN/TunnelManager/TunnelManager.swift index 196561af5e..74c2127059 100644 --- a/ios/MullvadVPN/TunnelManager/TunnelManager.swift +++ b/ios/MullvadVPN/TunnelManager/TunnelManager.swift @@ -31,7 +31,7 @@ private let establishedTunnelStatusPollInterval: TimeInterval = 5 private let privateKeyRotationInterval: TimeInterval = 60 * 60 * 24 * 14 /// Private key rotation retry interval (in seconds). -private let privateKeyRotationFailureRetryInterval: TimeInterval = 60 * 15 +private let privateKeyRotationFailureRetryInterval: TimeInterval = 60 * 60 * 24 /// A class that provides a convenient interface for VPN tunnels configuration, manipulation and /// monitoring. diff --git a/mullvad-daemon/src/device/service.rs b/mullvad-daemon/src/device/service.rs index 1f574f272f..c1aba7b748 100644 --- a/mullvad-daemon/src/device/service.rs +++ b/mullvad-daemon/src/device/service.rs @@ -206,7 +206,7 @@ impl DeviceService { )) }, should_retry_backoff, - retry_strategy(), + rotate_retry_strategy(), ) .await .map_err(map_rest_error)?; @@ -443,3 +443,7 @@ fn retry_strategy() -> Jittered<ExponentialBackoff> { .max_delay(RETRY_BACKOFF_INTERVAL_MAX), ) } + +fn rotate_retry_strategy() -> impl Iterator<Item = Duration> { + std::iter::repeat(RETRY_BACKOFF_INTERVAL_MAX) +} |
