Skip to content

Commit

Permalink
add defensive timeouts for realistic clusters (#1162)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana authored Jun 8, 2022
1 parent 7ae1610 commit cb5cdba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/cluster/monitoring.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,11 @@ func getHealthCheckTransport() func() *http.Transport {
tr := &http.Transport{
Proxy: http.ProxyFromEnvironment,
DialContext: (&net.Dialer{
Timeout: 2 * time.Second,
Timeout: 15 * time.Second,
}).DialContext,
MaxIdleConnsPerHost: 1024,
IdleConnTimeout: 30 * time.Second,
ResponseHeaderTimeout: 5 * time.Second,
ResponseHeaderTimeout: 1 * time.Minute,
TLSHandshakeTimeout: 5 * time.Second,
ExpectContinueTimeout: 5 * time.Second,
TLSClientConfig: tlsConfig,
Expand Down

0 comments on commit cb5cdba

Please sign in to comment.