From 4b44537ce6065698cd90ea6783b51b56aeed3020 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Mon, 8 Aug 2022 08:12:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0Ln=E8=8A=82=E7=82=B9=E5=90=91?= =?UTF-8?q?=E6=BA=90=E7=AB=99=E7=9A=84=E6=9C=80=E5=A4=A7=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=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, 4 insertions(+) diff --git a/internal/nodes/http_client_pool.go b/internal/nodes/http_client_pool.go index 8034e82..3e08fab 100644 --- a/internal/nodes/http_client_pool.go +++ b/internal/nodes/http_client_pool.go @@ -107,6 +107,10 @@ func (this *HTTPClientPool) Client(req *HTTPRequest, maxConnections *= 8 idleConns *= 8 idleTimeout *= 4 + } else if sharedNodeConfig != nil && sharedNodeConfig.Level > 1 { + // Ln节点可以适当增加连接数 + maxConnections *= 2 + idleConns *= 2 } // TLS通讯