Skip to content

Commit

Permalink
add unexpected EOF as retriable error
Browse files Browse the repository at this point in the history
  • Loading branch information
albluque committed Oct 14, 2020
1 parent aaaa1d4 commit 2c0c468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/go110.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func shouldRetry(err error) bool {
// Retry socket-level errors ECONNREFUSED and ENETUNREACH (from syscall).
// Unfortunately the error type is unexported, so we resort to string
// matching.
retriable := []string{"connection refused", "connection reset"}
retriable := []string{"connection refused", "connection reset", "unexpected EOF"}
for _, s := range retriable {
if strings.Contains(e.Error(), s) {
return true
Expand Down

0 comments on commit 2c0c468

Please sign in to comment.