mirror of
https://github.com/status-im/consul.git
synced 2025-02-22 18:38:19 +00:00
close h2ping client connections
This commit is contained in:
parent
9deb52e868
commit
5307c5c3a1
@ -541,6 +541,7 @@ func (c *CheckH2PING) check() {
|
||||
}
|
||||
ctx, cancel := context.WithTimeout(context.Background(), c.Timeout)
|
||||
defer cancel()
|
||||
defer clientConn.Shutdown(ctx)
|
||||
err = clientConn.Ping(ctx)
|
||||
if err == nil {
|
||||
c.StatusHandler.updateCheck(c.CheckID, api.HealthPassing, "HTTP2 ping was successful")
|
||||
|
Loading…
x
Reference in New Issue
Block a user