mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 04:00:25 +03:00
fix: close and drain the response body always (#8847)
This commit is contained in:
@@ -69,6 +69,7 @@ func (c *Client) CallWithContext(ctx context.Context, method string, values url.
|
||||
}
|
||||
resp, err := c.httpClient.Do(req)
|
||||
if err != nil {
|
||||
c.httpClient.CloseIdleConnections()
|
||||
return nil, &NetworkError{err}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user