From 487e435679d6c8cc153b8ef048b8957478cd3d0c Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 12 Feb 2021 03:47:15 -0800 Subject: adjust http max idle connections per host related to https://github.com/chrislusf/seaweedfs/issues/1802 --- .../stress_filer_upload/bench_filer_upload/bench_filer_upload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unmaintained') 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))) -- cgit v1.2.3