Skip to content

Commit 4828a31

Browse files
🎨 #3534 为connectionRequestTimeout设置默认值,避免开发者在虚拟线程中调用框架的httpClient时造成的无限等待
1 parent 3f0b8d4 commit 4828a31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/DefaultApacheHttpClientBuilder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public class DefaultApacheHttpClientBuilder implements ApacheHttpClientBuilder {
5959
* 设置为负数是使用系统默认设置(非3000ms的默认值,而是httpClient的默认设置).
6060
* </p>
6161
*/
62-
private int connectionRequestTimeout = -1;
62+
private int connectionRequestTimeout = 3000;
6363

6464
/**
6565
* 建立链接的超时时间,默认为5000ms.由于是在链接池获取链接,此设置应该并不起什么作用

0 commit comments

Comments
 (0)