From 9d298dee51c26059b586864d9139db29d8905974 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Thu, 28 May 2015 12:52:29 +0300 Subject: [PATCH] Remove deadline timeout. #255 --- s3/public.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)