diff --git a/pkg/api/client/client.go b/pkg/api/client/client.go index de943318b78..a690ca6ff88 100644 --- a/pkg/api/client/client.go +++ b/pkg/api/client/client.go @@ -34,6 +34,11 @@ func NewClient(opts ...Opt) Client { return r.StatusCode() >= http.StatusInternalServerError && r.StatusCode() != http.StatusNotImplemented }) + // disable reuse of TCP connection with same host + if transport, ok := httpClient.GetClient().Transport.(*http.Transport); ok { + transport.MaxIdleConnsPerHost = -1 + } + c := &client{ host: apiHost, port: apiPort,