Explorar el Código

Merge branch '20250422-wyp-httpTimeOut' of Server/growth-manager into master

wangyunpeng hace 2 días
padre
commit
6fb726d4eb

+ 5 - 5
common-module/src/main/java/com/tzld/piaoquan/growth/common/config/HttpClientConfig.java

@@ -15,21 +15,21 @@ public class HttpClientConfig {
     /**
      * 链接建立的超时时间 ms
      */
-    private static final int CONNECTION_TIMEOUT = 3000;
+    private static final int CONNECTION_TIMEOUT = 5000;
     /**
      * 响应超时时间 ms
      */
-    private static final int SOCKET_TIMEOUT = 10000;
+    private static final int SOCKET_TIMEOUT = 30000;
 
     /**
      * 每个路由的最大连接数
      */
-    private static final int MAX_PER_ROUTE = 20;
+    private static final int MAX_PER_ROUTE = 100;
 
     /**
      * 最大连接数
      */
-    private static final int MAX_TOTAL = 100;
+    private static final int MAX_TOTAL = 500;
 
     /**
      * 重试次数,默认0
@@ -39,7 +39,7 @@ public class HttpClientConfig {
     /**
      * 从connection pool中获得一个connection的超时时间 ms
      */
-    private static final int CONNECTION_WAIT_TIMEOUT = 2000;
+    private static final int CONNECTION_WAIT_TIMEOUT = 5000;
 
 
     @Bean