mirror of
https://github.com/TwiN/gatus.git
synced 2025-02-01 19:09:37 +01:00
Set MaxIdleConns and MaxIdleConnsPerHost to 100 and 20 respectively
This commit is contained in:
parent
2066497553
commit
835704bf8a
@ -32,6 +32,10 @@ func GetHTTPClient(insecure bool) *http.Client {
|
||||
if secureHTTPClient == nil {
|
||||
secureHTTPClient = &http.Client{
|
||||
Timeout: time.Second * 10,
|
||||
Transport: &http.Transport{
|
||||
MaxIdleConns: 100,
|
||||
MaxIdleConnsPerHost: 20,
|
||||
},
|
||||
}
|
||||
}
|
||||
return secureHTTPClient
|
||||
|
Loading…
Reference in New Issue
Block a user