aboutsummaryrefslogtreecommitdiff
path: root/weed/operation/upload_content.go
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 /weed/operation/upload_content.go
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 'weed/operation/upload_content.go')
-rw-r--r--weed/operation/upload_content.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.go
index fccc24b16..7e2a6dcd2 100644
--- a/weed/operation/upload_content.go
+++ b/weed/operation/upload_content.go
@@ -58,6 +58,7 @@ var (
func init() {
HttpClient = &http.Client{Transport: &http.Transport{
+ MaxIdleConns: 1024,
MaxIdleConnsPerHost: 1024,
}}
}