close h2ping client connections
This commit is contained in:
parent
b8e7a90f77
commit
7ac3d84ad4
|
@ -541,6 +541,7 @@ func (c *CheckH2PING) check() {
|
||||||
}
|
}
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), c.Timeout)
|
ctx, cancel := context.WithTimeout(context.Background(), c.Timeout)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
defer clientConn.Shutdown(ctx)
|
||||||
err = clientConn.Ping(ctx)
|
err = clientConn.Ping(ctx)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
c.StatusHandler.updateCheck(c.CheckID, api.HealthPassing, "HTTP2 ping was successful")
|
c.StatusHandler.updateCheck(c.CheckID, api.HealthPassing, "HTTP2 ping was successful")
|
||||||
|
|
Loading…
Reference in New Issue