From 82d21d770737b3cfc02dde9d7b5eb208b674dd1a Mon Sep 17 00:00:00 2001 From: Marat Al Date: Sun, 23 Nov 2025 21:32:31 +0000 Subject: [PATCH] Set _immediateReconnectionDelay to 1 second, because it is short enough for the user not to notice it and is long enough for the hardware to digest quick iteration over fallback hosts. This will ease the effect of a proxy connection drop until proper solution implemented (see https://github.com/ably/ably-cocoa/issues/2142). --- Source/ARTRealtime.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/ARTRealtime.m b/Source/ARTRealtime.m index 4296640ff..84db63bd6 100644 --- a/Source/ARTRealtime.m +++ b/Source/ARTRealtime.m @@ -258,7 +258,7 @@ - (instancetype)initWithOptions:(ARTClientOptions *)options { _pendingAuthorizations = [NSMutableArray array]; _connection = [[ARTConnectionInternal alloc] initWithRealtime:self logger:self.logger]; _connectionStateTtl = [ARTDefault connectionStateTtl]; - _immediateReconnectionDelay = 0.1; + _immediateReconnectionDelay = 1.0; const id connectRetryDelayCalculator = [[ARTBackoffRetryDelayCalculator alloc] initWithInitialRetryTimeout:options.disconnectedRetryTimeout jitterCoefficientGenerator:options.testOptions.jitterCoefficientGenerator]; _connectRetryState = [[ARTConnectRetryState alloc] initWithRetryDelayCalculator:connectRetryDelayCalculator