Skip to content

Commit a5585d6

Browse files
authored
automagically handle connection resets (#8035)
1 parent 7a36867 commit a5585d6

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tools/test-proxy/Azure.Sdk.Tools.TestProxy/Store/GitProcessHandler.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,14 @@ public bool IsRetriableGitError(CommandResult result)
241241
return true;
242242
}
243243

244+
// Unable to write data to the transport connection: Connection reset by peer.
245+
// Unable to read data from the transport connection: Connection reset by peer.
246+
// Connection reset by peer
247+
if (result.StdErr.ToLower().Contains("connection reset"))
248+
{
249+
return true;
250+
}
251+
244252
// fatal: unable to access 'https://github.com/Azure/azure-sdk-assets/': Failed to connect to github.com port 443: Operation timed out
245253
// fatal: unable to access 'https://github.com/Azure/azure-sdk-assets/': Failed to connect to github.com port 443: Connection timed out
246254
// fatal: unable to access 'https://github.com/Azure/azure-sdk-assets/': Recv failure: Operation timed out

0 commit comments

Comments
 (0)