Skip to content

Commit

Permalink
automagically handle connection resets (#8035)
Browse files Browse the repository at this point in the history
  • Loading branch information
scbedd authored Apr 10, 2024
1 parent 7a36867 commit a5585d6
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,14 @@ public bool IsRetriableGitError(CommandResult result)
return true;
}

// Unable to write data to the transport connection: Connection reset by peer.
// Unable to read data from the transport connection: Connection reset by peer.
// Connection reset by peer
if (result.StdErr.ToLower().Contains("connection reset"))
{
return true;
}

// fatal: unable to access 'https://github.com/Azure/azure-sdk-assets/': Failed to connect to github.com port 443: Operation timed out
// fatal: unable to access 'https://github.com/Azure/azure-sdk-assets/': Failed to connect to github.com port 443: Connection timed out
// fatal: unable to access 'https://github.com/Azure/azure-sdk-assets/': Recv failure: Operation timed out
Expand Down

0 comments on commit a5585d6

Please sign in to comment.