mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 00:34:10 -04:00
Disable keep-alive for SSH tunnel health checks
We don't reuse the http client. Disabling the keep-alive to properly close the connections.
This commit is contained in:
parent
c41c24fbf3
commit
e105eec9c9
1 changed files with 3 additions and 0 deletions
|
|
@ -364,6 +364,9 @@ func (l *SSHTunnelList) healthCheck(e sshTunnelEntry) error {
|
|||
Dial: e.Tunnel.Dial,
|
||||
// TODO(cjcullen): Plumb real TLS options through.
|
||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
|
||||
// We don't reuse the clients, so disable the keep-alive to properly
|
||||
// close the connection.
|
||||
DisableKeepAlives: true,
|
||||
})
|
||||
client := &http.Client{Transport: transport}
|
||||
resp, err := client.Get(l.healthCheckURL.String())
|
||||
|
|
|
|||
Loading…
Reference in a new issue