From 22aa7129c312ff925c3c0cc1880892fac06d56a1 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sat, 27 Mar 2021 18:40:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=8F=8D=E5=90=91=E4=BB=A3?= =?UTF-8?q?=E7=90=86=E7=9A=84=E9=BB=98=E8=AE=A4=E6=9C=80=E5=A4=A7=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E6=95=B0=E5=92=8C=E6=9C=80=E5=A4=A7=E7=A9=BA=E9=97=B2?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/http_client_pool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/nodes/http_client_pool.go b/internal/nodes/http_client_pool.go index 03c51d7..5201fe0 100644 --- a/internal/nodes/http_client_pool.go +++ b/internal/nodes/http_client_pool.go @@ -73,11 +73,11 @@ func (this *HTTPClientPool) Client(req *http.Request, origin *serverconfigs.Orig numberCPU = 8 } if maxConnections <= 0 { - maxConnections = numberCPU * 2 + maxConnections = numberCPU * 8 } if idleConns <= 0 { - idleConns = numberCPU + idleConns = numberCPU * 4 } //logs.Println("[ORIGIN]max connections:", maxConnections)