Skip to content

Commit

Permalink
Merge branch 'AvoidRetryOnUnknownHost' of https://github.com/KoenZome…
Browse files Browse the repository at this point in the history
  • Loading branch information
jansenbe committed Jun 23, 2022
2 parents 78338d3 + 82e6b12 commit f4be616
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/lib/PnP.Framework/Extensions/ClientContextExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,13 @@ private static async Task ExecuteQueryImplementation(ClientRuntimeContext client
errorSb.AppendLine($"SocketErrorCode: {socketEx.SocketErrorCode}"); //ConnectionReset
errorSb.AppendLine($"Message: {socketEx.Message}"); //An existing connection was forcibly closed by the remote host
Log.Error(Constants.LOGGING_SOURCE, CoreResources.ClientContextExtensions_ExecuteQueryRetryException, errorSb.ToString());


// Hostname unknown error code 11001 should not be retried
if(socketEx.ErrorCode == 11001)
{
throw;
}

//retry
wrapper = (ClientRequestWrapper)wex.Data["ClientRequest"];
retry = true;
Expand Down

0 comments on commit f4be616

Please sign in to comment.