diff --git a/main.go b/main.go index 545ad35..60f9f91 100644 --- a/main.go +++ b/main.go @@ -44,8 +44,7 @@ func main() { server := &http.Server{ Handler: router, Addr: listen, - ReadTimeout: 5 * time.Second, - WriteTimeout: 10 * time.Second, + ReadTimeout: 30 * time.Second, } log.Printf("listening on %s", listen) err := server.ListenAndServe() diff --git a/s3.go b/s3.go index c65c3e7..9f2d6af 100644 --- a/s3.go +++ b/s3.go @@ -231,7 +231,7 @@ func completeMultipartUpload( parts []completePart, cred credential, ) (completeMultipartUploadResult, error) { - ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute) + ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute) defer cancel() var body bytes.Buffer