Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions internal/retry/transient.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ var transientNetworkIndicators = []string{
"connection refused",
"connection reset",
"timeout",
"timed out", // OS-level socket timeouts (ETIMEDOUT) render as "operation timed out", which "timeout" misses
"temporary failure",
"eof",
"broken pipe",
Expand Down
1 change: 1 addition & 0 deletions internal/retry/transient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func TestIsTransient(t *testing.T) {
"dial tcp: connection refused",
"read tcp: connection reset by peer",
"request timeout",
"read tcp 100.75.20.5:56710->10.198.65.200:443: read: operation timed out", // ETIMEDOUT phrasing
"unexpected EOF",
"write: broken pipe",
"lookup api.example.com: no such host",
Expand Down
Loading