Set MaxIdleConns and MaxIdleConnsPerHost to 100 and 20 respectively
This commit is contained in:
parent
babc7f9f07
commit
2066497553
@ -19,6 +19,8 @@ func GetHTTPClient(insecure bool) *http.Client {
|
|||||||
insecureHTTPClient = &http.Client{
|
insecureHTTPClient = &http.Client{
|
||||||
Timeout: time.Second * 10,
|
Timeout: time.Second * 10,
|
||||||
Transport: &http.Transport{
|
Transport: &http.Transport{
|
||||||
|
MaxIdleConns: 100,
|
||||||
|
MaxIdleConnsPerHost: 20,
|
||||||
TLSClientConfig: &tls.Config{
|
TLSClientConfig: &tls.Config{
|
||||||
InsecureSkipVerify: true,
|
InsecureSkipVerify: true,
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user