1
0
Fork 0

Remove response timeout

upload-progress
Ambrose Chua 2021-06-29 19:36:28 +08:00
parent b81729c558
commit 2151f1d2ca
2 changed files with 2 additions and 3 deletions

View File

@ -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
View File

@ -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