Skip to content

Commit 172638b

Browse files
niefybinarywang
authored andcommitted
🎨 #1534 公众号模块更改http请求默认connectionRequestTimeout参数,以避免高并发场景下出现ConnectionPoolTimeoutException异常。
1 parent 9472dd3 commit 172638b

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
public class DefaultApacheHttpClientBuilder implements ApacheHttpClientBuilder {
4646
protected final Logger log = LoggerFactory.getLogger(DefaultApacheHttpClientBuilder.class);
4747
private final AtomicBoolean prepared = new AtomicBoolean(false);
48-
private int connectionRequestTimeout = 3000;
48+
private int connectionRequestTimeout = -1;
4949
private int connectionTimeout = 5000;
5050
private int soTimeout = 5000;
5151
private int idleConnTimeout = 60000;

0 commit comments

Comments
 (0)