Skip to content

Commit

Permalink
s3gateway: remove limit on file uploads; make upload timeout less agg…
Browse files Browse the repository at this point in the history
…ressive (#8407) (#8420)
  • Loading branch information
jrockway committed Dec 6, 2022
1 parent ea4c14f commit 360e5fb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/server/pfs/s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"context"
"fmt"
stdlog "log"
"math"
"net/http"
"strings"
"sync"
Expand All @@ -25,9 +26,9 @@ type ClientFactory = func(ctx context.Context) *client.APIClient
const (
multipartRepo = "_s3gateway_multipart_"
maxAllowedParts = 10000
maxRequestBodyLength = 128 * 1024 * 1024 //128mb
requestTimeout = 10 * time.Second
readBodyTimeout = 5 * time.Second
maxRequestBodyLength = math.MaxUint32 // Unlimited
requestTimeout = 5 * time.Minute
readBodyTimeout = 5*time.Minute - 30*time.Second

// The S3 storage class that all PFS content will be reported to be stored in
globalStorageClass = "STANDARD"
Expand Down

0 comments on commit 360e5fb

Please sign in to comment.