From 5a41be49d7c0766426e68c6aa96f2701165787b8 Mon Sep 17 00:00:00 2001 From: Mark Holt Date: Mon, 22 Jul 2024 22:33:58 +0100 Subject: [PATCH] remove max conns --- client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.go b/client.go index e7fc922459..28804fd67b 100644 --- a/client.go +++ b/client.go @@ -221,8 +221,8 @@ func (cl *Client) init(cfg *ClientConfig) { // is set to stop the http runtime recycling sockets // attempt to avoid panic: net/http: internal error: connCount underflow - //MaxConnsPerHost: 500, - MaxIdleConnsPerHost: 50, + MaxConnsPerHost: 0, + MaxIdleConnsPerHost: 100, } } }