Skip to content

Commit

Permalink
Merge pull request #1436 from 0chain/hotfix/upload-timeout
Browse files Browse the repository at this point in the history
increase timeout to 120s
  • Loading branch information
dabasov authored Mar 24, 2024
2 parents 27073d2 + 22d6439 commit d2c0885
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion zboxcore/sdk/chunked_upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
)

const (
DefaultUploadTimeOut = 90 * time.Second
DefaultUploadTimeOut = 120 * time.Second
)

var (
Expand Down
4 changes: 2 additions & 2 deletions zboxcore/zboxutil/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ func init() {
Concurrency: 4096,
DNSCacheDuration: time.Hour,
}).Dial,
ReadTimeout: 90 * time.Second,
WriteTimeout: 90 * time.Second,
ReadTimeout: 120 * time.Second,
WriteTimeout: 120 * time.Second,
}
envProxy.initialize()
log.Init(logger.DEBUG, "0box-sdk")
Expand Down

0 comments on commit d2c0885

Please sign in to comment.