From 7ce4dcc22c49cb32a1dc2969ce3c6736eb1a760b Mon Sep 17 00:00:00 2001 From: zz630 <630867187@qq.com> Date: Tue, 22 Nov 2022 09:50:22 +0800 Subject: [PATCH] Update HttpClientManager.java (#9477) fix #9474 --- .../java/com/alibaba/nacos/naming/misc/HttpClientManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/naming/src/main/java/com/alibaba/nacos/naming/misc/HttpClientManager.java b/naming/src/main/java/com/alibaba/nacos/naming/misc/HttpClientManager.java index c28e2d959..11094bc8d 100644 --- a/naming/src/main/java/com/alibaba/nacos/naming/misc/HttpClientManager.java +++ b/naming/src/main/java/com/alibaba/nacos/naming/misc/HttpClientManager.java @@ -161,7 +161,7 @@ public class HttpClientManager { protected HttpClientConfig buildHttpClientConfig() { return HttpClientConfig.builder().setConnectionRequestTimeout(500).setReadTimeOutMillis(500) .setConTimeOutMillis(500).setIoThreadCount(1).setContentCompressionEnabled(false).setMaxRedirects(0) - .setMaxConnTotal(-1).setMaxConnPerRoute(-1).setUserAgent("VIPServer").build(); + .setMaxConnTotal(5000).setMaxConnPerRoute(-1).setUserAgent("VIPServer").build(); } @Override