Remove response timeout
parent
b81729c558
commit
2151f1d2ca
3
main.go
3
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()
|
||||
|
|
2
s3.go
2
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
|
||||
|
|
Loading…
Reference in New Issue