Fix http2 transport close

This commit is contained in:
世界
2023-03-31 14:31:35 +08:00
parent 2012c0ca1e
commit 19a35ec6a4
3 changed files with 24 additions and 0 deletions
+5
View File
@@ -167,3 +167,8 @@ func (c *Client) dialHTTP2(ctx context.Context) (net.Conn, error) {
}()
return conn, nil
}
func (c *Client) Close() error {
CloseIdleConnections(c.transport)
return nil
}