diff --git a/backend/s3/s3.go b/backend/s3/s3.go index ccb6cd42c..3c2d88770 100644 --- a/backend/s3/s3.go +++ b/backend/s3/s3.go @@ -4,6 +4,7 @@ import ( "bytes" "errors" "io" + "net/http" "strings" "github.com/minio/minio-go" @@ -39,6 +40,11 @@ func Open(cfg Config) (backend.Backend, error) { return nil, err } + tr := &http.Transport{ + DisableKeepAlives: true, + } + client.SetCustomTransport(tr) + be := &s3{client: client, bucketname: cfg.Bucket} be.createConnections()