Skip to content

Commit fe1e3dd

Browse files
RED-144637 - close the connecton after issuing a request
We suspect that connections are not closed properly, leading to overloading envoy and API availability issues.
1 parent 2508649 commit fe1e3dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/sdk/sdk.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ func (c *Client) request(ctx context.Context, method string, path string, reques
6868
}
6969

7070
req, err := http.NewRequestWithContext(ctx, method, url, requestBodyReader)
71+
req.Close = true
7172
if err != nil {
7273
return fmt.Errorf("unable to perform request %s %s: %w", method, path, err)
7374
}

0 commit comments

Comments
 (0)