Skip to content

Commit 9382a9b

Browse files
committed
Added more error statuses to trigger an http call retry. Fixes error in #102
1 parent 631731a commit 9382a9b

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

nuget/io.ably.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
33
<metadata>
44
<id>ably.io</id>
5-
<version>0.8.4.2</version>
5+
<version>0.8.4.3</version>
66
<title>ably.io</title>
77
<authors>Yavor Ivanov,Martin Georgiev</authors>
88
<owners>Ably Real-time Ltd</owners>

src/CommonAssemblyInfo.cs

-12 Bytes
Binary file not shown.

src/IO.Ably.Shared/Http/AblyHttpClient.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,11 @@ internal bool IsRetryableError(Exception ex)
204204
var webEx = httpEx.InnerException as WebException;
205205
return webEx.Status == WebExceptionStatus.NameResolutionFailure ||
206206
webEx.Status == WebExceptionStatus.Timeout ||
207-
webEx.Status == WebExceptionStatus.ConnectFailure;
207+
webEx.Status == WebExceptionStatus.ConnectFailure ||
208+
webEx.Status == WebExceptionStatus.ReceiveFailure ||
209+
webEx.Status == WebExceptionStatus.ConnectionClosed ||
210+
webEx.Status == WebExceptionStatus.SendFailure ||
211+
webEx.Status == WebExceptionStatus.ServerProtocolViolation;
208212
}
209213
return false;
210214
}

0 commit comments

Comments
 (0)