mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-04 02:57:44 +01:00
adjust http max idle connections per host
related to https://github.com/chrislusf/seaweedfs/issues/1802
This commit is contained in:
1 parent
0f426ce34d
commit
487e435679
6 files changed
+6
-1
No files matched your search
@@ -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)))
|
||||
|
||||
Reference in new issue
Block a user