From 679b0a129d7eb016621ff6664ca3ce14c84ed7c7 Mon Sep 17 00:00:00 2001 From: M09Ic Date: Thu, 5 Jan 2023 14:58:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4client=E4=B8=AD=E5=B9=B6?= =?UTF-8?q?=E5=8F=91=E6=B1=A0=E7=9A=84=E5=A4=A7=E5=B0=8F=E4=B8=BA-t?= =?UTF-8?q?=E7=9A=841.5=E5=80=8D,=20=E4=BC=98=E5=8C=96=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/ihttp/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ihttp/client.go b/pkg/ihttp/client.go index 11c6078..c1f9dc3 100644 --- a/pkg/ihttp/client.go +++ b/pkg/ihttp/client.go @@ -26,7 +26,7 @@ func NewClient(thread int, timeout int, clientType int) *Client { Renegotiation: tls.RenegotiateOnceAsClient, InsecureSkipVerify: true, }, - MaxConnsPerHost: thread * 2, + MaxConnsPerHost: thread * 3 / 2, MaxIdleConnDuration: time.Duration(timeout) * time.Second, MaxConnWaitTimeout: time.Duration(timeout) * time.Second, ReadTimeout: time.Duration(timeout) * time.Second,