Skip to content

Commit b3a60e6

Browse files
authored
Retry http error related to DNS resolution failure. (#4110)
1 parent 334df74 commit b3a60e6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Sdk/Common/Common/VssHttpRetryMessageHandler.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
using GitHub.Services.Common.Diagnostics;
2-
using System;
1+
using System;
2+
using System.Collections.Generic;
33
using System.ComponentModel;
44
using System.Diagnostics;
5+
using System.Linq;
56
using System.Net;
67
using System.Net.Http;
78
using System.Net.Sockets;
89
using System.Threading;
910
using System.Threading.Tasks;
10-
using System.Collections.Generic;
11-
using System.Linq;
11+
using GitHub.Services.Common.Diagnostics;
1212
using GitHub.Services.Common.Internal;
1313

1414
namespace GitHub.Services.Common

src/Sdk/Common/Common/VssNetworkHelper.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ private static bool IsTransientNetworkExceptionHelper(
146146
sockEx.SocketErrorCode == SocketError.TimedOut ||
147147
sockEx.SocketErrorCode == SocketError.HostDown ||
148148
sockEx.SocketErrorCode == SocketError.HostUnreachable ||
149+
sockEx.SocketErrorCode == SocketError.HostNotFound ||
149150
sockEx.SocketErrorCode == SocketError.TryAgain)
150151
{
151152
return true;

0 commit comments

Comments
 (0)