vendorize minio-go with fix for reset peer to retry (#2420)

This commit is contained in:
Harshavardhana
2018-03-24 13:10:23 -07:00
parent 45b32d3985
commit da5c19848d
3 changed files with 6 additions and 3 deletions
+3
View File
@@ -111,6 +111,9 @@ func isNetErrorRetryable(err error) bool {
} else if strings.Contains(err.Error(), "connection timed out") {
// If err is a net.Dial timeout, retry.
return true
} else if strings.Contains(err.Error(), "net/http: HTTP/1.x transport connection broken") {
// If error is transport connection broken, retry.
return true
}
}
}
BIN
View File
Binary file not shown.