From 31175cf1eac4c915cdbc9f89539915b4a0a08e25 Mon Sep 17 00:00:00 2001 From: Mark Holt Date: Tue, 23 Jul 2024 08:06:48 +0100 Subject: [PATCH] remove max conns --- client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client.go b/client.go index cfec6d7b01..83828bb070 100644 --- a/client.go +++ b/client.go @@ -215,7 +215,8 @@ func (cl *Client) init(cfg *ClientConfig) { cl.httpClient.Transport = &http.Transport{ Proxy: cfg.HTTPProxy, DialContext: cfg.HTTPDialContext, - // Don't set maxconns - attempt to avoid panic: net/http: internal error: connCount underflow + // Don't set maxconns - to avoid panic: net/http: internal error: connCount underflow + // which is caused under load due to an ongoing issue in the go http transport code MaxConnsPerHost: 0, } }