Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,20 @@ protected bool IgnoreIfConnectionFailed (AggregateException aex, out bool connec

bool IgnoreIfConnectionFailed (HttpRequestException hrex, out bool connectionFailed)
{
return IgnoreIfConnectionFailed (hrex?.InnerException as WebException, out connectionFailed);
connectionFailed = false;
if (hrex == null)
return false;

if (IgnoreIfConnectionFailed (hrex.InnerException as WebException, out connectionFailed))
return true;

if (hrex.InnerException is System.IO.IOException ioEx) {
connectionFailed = true;
Assert.Ignore ($"Ignoring transient IO error: {ioEx}");
return true;
}

return false;
}

bool IgnoreIfConnectionFailed (WebException wex, out bool connectionFailed)
Expand Down Expand Up @@ -168,6 +181,7 @@ bool IgnoreIfSocketException (Exception ex, out bool connectionFailed)
}
return false;
}

}

[Category ("AndroidClientHandler")]
Expand Down