mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-08-20 00:44:25 +08:00
refactor: 调整微信 API 连接的 soTimeout 默认值为 5000毫秒
- 修改 WxMpProperties 和 WxOpenProperties 类中的 soTimeout 属性默认值- 从 1 毫秒调整为 5000 毫秒,以提高读数据超时时间 - 此修改旨在解决可能的读取超时问题,确保更稳定的 API连接
This commit is contained in:
parent
62f89987c0
commit
5d7e36ff5b
@ -110,7 +110,7 @@ public class WxMpProperties {
|
||||
/**
|
||||
* 读数据超时时间,即socketTimeout,单位毫秒
|
||||
*/
|
||||
private int soTimeout = 1;
|
||||
private int soTimeout = 5000;
|
||||
|
||||
/**
|
||||
* 从连接池获取链接的超时时间,单位毫秒
|
||||
|
||||
@ -116,7 +116,7 @@ public class WxOpenProperties {
|
||||
/**
|
||||
* 读数据超时时间,即socketTimeout,单位毫秒
|
||||
*/
|
||||
private int soTimeout = 1;
|
||||
private int soTimeout = 5000;
|
||||
|
||||
/**
|
||||
* 从连接池获取链接的超时时间,单位毫秒
|
||||
|
||||
Loading…
Reference in New Issue
Block a user