Skip to content

Commit 9268255

Browse files
committed
fix: proactively close the response body
1 parent bfc1a5e commit 9268255

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

client/connection.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ func Execute(ctx context.Context, invocations []invocation.Invocation, conn Conn
117117
if err != nil {
118118
return nil, fmt.Errorf("sending message: %w", err)
119119
}
120+
defer res.Body().Close()
120121

121122
output, err := conn.Codec().Decode(res)
122123
if err != nil {

0 commit comments

Comments
 (0)