diff --git a/s3/public.go b/s3/public.go index a99e9b36..89d0a9d0 100644 --- a/s3/public.go +++ b/s3/public.go @@ -10,6 +10,7 @@ import ( "os" "path/filepath" "strings" + "time" ) // PublishedStorage abstract file system with published files (actually hosted on S3) @@ -50,8 +51,11 @@ func NewPublishedStorageRaw(auth aws.Auth, region aws.Region, bucket, defaultACL disableMultiDel: disabledMultiDel, } + rt := &(*aws.RetryingClient.Transport.(*aws.ResilientTransport)) + rt.Deadline = func() time.Time { return time.Time{} } + result.s3.HTTPClient = func() *http.Client { - return aws.RetryingClient + return aws.NewClient(rt) } result.bucket = result.s3.Bucket(bucket)