aboutsummaryrefslogtreecommitdiff
path: root/unmaintained
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-02-12 03:47:15 -0800
committerChris Lu <chris.lu@gmail.com>2021-02-12 03:47:15 -0800
commit487e435679d6c8cc153b8ef048b8957478cd3d0c (patch)
treec1263a119015632756960aa9e42e4b5cb3dc1eef /unmaintained
parent0f426ce34d63deb6c8d4695c43a9e7c504e25005 (diff)
downloadseaweedfs-487e435679d6c8cc153b8ef048b8957478cd3d0c.tar.xz
seaweedfs-487e435679d6c8cc153b8ef048b8957478cd3d0c.zip
adjust http max idle connections per host
related to https://github.com/chrislusf/seaweedfs/issues/1802
Diffstat (limited to 'unmaintained')
-rw-r--r--unmaintained/stress_filer_upload/bench_filer_upload/bench_filer_upload.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/unmaintained/stress_filer_upload/bench_filer_upload/bench_filer_upload.go b/unmaintained/stress_filer_upload/bench_filer_upload/bench_filer_upload.go
index b2e4b28c6..2ee8028f2 100644
--- a/unmaintained/stress_filer_upload/bench_filer_upload/bench_filer_upload.go
+++ b/unmaintained/stress_filer_upload/bench_filer_upload/bench_filer_upload.go
@@ -45,7 +45,7 @@ func main() {
defer wg.Done()
client := &http.Client{Transport: &http.Transport{
- MaxConnsPerHost: 1024,
+ MaxIdleConns: 1024,
MaxIdleConnsPerHost: 1024,
}}
r := rand.New(rand.NewSource(time.Now().UnixNano() + int64(x)))