diff options
| author | chrislu <chris.lu@gmail.com> | 2021-12-29 22:44:39 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2021-12-29 22:44:39 -0800 |
| commit | fb434318e36ac8e78ab304bfd5421f110c10bdf1 (patch) | |
| tree | 4c53c9463f0486a342ab0cc7d4a26c56b9a86ab3 /weed/command/s3.go | |
| parent | 5788bf2270c2158798d1ff48c5e7145e8899e1a3 (diff) | |
| download | seaweedfs-fb434318e36ac8e78ab304bfd5421f110c10bdf1.tar.xz seaweedfs-fb434318e36ac8e78ab304bfd5421f110c10bdf1.zip | |
dynamically adjust connection timeout
better fix for https://github.com/chrislusf/seaweedfs/issues/2541
Diffstat (limited to 'weed/command/s3.go')
| -rw-r--r-- | weed/command/s3.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/s3.go b/weed/command/s3.go index 679a4ae45..ee726fcec 100644 --- a/weed/command/s3.go +++ b/weed/command/s3.go @@ -192,7 +192,7 @@ func (s3opt *S3Options) startS3Server() bool { httpS := &http.Server{Handler: router} listenAddress := fmt.Sprintf("%s:%d", *s3opt.bindIp, *s3opt.port) - s3ApiListener, err := util.NewListener(listenAddress, time.Duration(30)*time.Second) + s3ApiListener, err := util.NewListener(listenAddress, time.Duration(10)*time.Second) if err != nil { glog.Fatalf("S3 API Server listener on %s error: %v", listenAddress, err) } |
