Fix http2 transport close

This commit is contained in:
世界
2023-03-30 19:06:57 +08:00
parent 2012c0ca1e
commit 19a35ec6a4
3 changed files with 24 additions and 0 deletions

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
}