summaryrefslogtreecommitdiffstats
path: root/Godeps/_workspace/src/github.com/goamz/goamz/s3/s3.go
diff options
context:
space:
mode:
Diffstat (limited to 'Godeps/_workspace/src/github.com/goamz/goamz/s3/s3.go')
-rw-r--r--Godeps/_workspace/src/github.com/goamz/goamz/s3/s3.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/Godeps/_workspace/src/github.com/goamz/goamz/s3/s3.go b/Godeps/_workspace/src/github.com/goamz/goamz/s3/s3.go
index 88ef975d1..9490c9b96 100644
--- a/Godeps/_workspace/src/github.com/goamz/goamz/s3/s3.go
+++ b/Godeps/_workspace/src/github.com/goamz/goamz/s3/s3.go
@@ -1101,10 +1101,14 @@ func shouldRetry(err error) bool {
}
case *Error:
switch e.Code {
- case "InternalError", "NoSuchUpload", "NoSuchBucket":
+ case "InternalError", "NoSuchUpload", "NoSuchBucket", "RequestTimeout":
return true
}
+ // let's handle tls handshake timeout issues and similar temporary errors
+ case net.Error:
+ return e.Temporary()
}
+
return false
}