-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,10 +85,10 @@ public async Task<AblyResponse> Execute(AblyRequest request) | |
{ | ||
var fallbackHosts = GetFallbackHosts(); | ||
|
||
int currentTry = 0; | ||
int currentTry = 0; | ||
Check failure on line 88 in src/IO.Ably.Shared/Http/AblyHttpClient.cs GitHub Actions / check (net6.0)
Check failure on line 88 in src/IO.Ably.Shared/Http/AblyHttpClient.cs GitHub Actions / check (net6.0)
Check failure on line 88 in src/IO.Ably.Shared/Http/AblyHttpClient.cs GitHub Actions / check (net6.0)
Check failure on line 88 in src/IO.Ably.Shared/Http/AblyHttpClient.cs GitHub Actions / check (net6.0)
Check failure on line 88 in src/IO.Ably.Shared/Http/AblyHttpClient.cs GitHub Actions / check (net7.0)
Check failure on line 88 in src/IO.Ably.Shared/Http/AblyHttpClient.cs GitHub Actions / check (net7.0)
Check failure on line 88 in src/IO.Ably.Shared/Http/AblyHttpClient.cs GitHub Actions / check (net6.0)
Check failure on line 88 in src/IO.Ably.Shared/Http/AblyHttpClient.cs GitHub Actions / check (net6.0)
|
||
var startTime = Now(); | ||
|
||
var maxNumberOfRetries = Options.HttpMaxRetryCount; // One for the first request | ||
var maxNumberOfRetries = Options.HttpMaxRetryCount; | ||
var host = GetHost(); | ||
|
||
request.Headers.TryGetValue("request_id", out var requestId); | ||
|
@@ -148,7 +148,7 @@ public async Task<AblyResponse> Execute(AblyRequest request) | |
throw new AblyException(new ErrorInfo(WrapWithRequestId("Error executing request. " + ex.Message), ErrorCodes.InternalError), ex); | ||
} | ||
} | ||
while (currentTry <= maxNumberOfRetries); | ||
while (currentTry <= maxNumberOfRetries); // 1 primary host and remaining fallback hosts | ||
|
||
throw new AblyException(new ErrorInfo(WrapWithRequestId("Error executing request, exceeded max no. of retries"), ErrorCodes.InternalError)); | ||
|
||
|