Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新默认connectionRequestTimeout #1534

Merged
merged 1 commit into from
Apr 27, 2020
Merged

更新默认connectionRequestTimeout #1534

merged 1 commit into from
Apr 27, 2020

Conversation

niefy
Copy link

@niefy niefy commented Apr 27, 2020

从连接池获取连接时不应该设置默认超时时间,实测多线程同时进行Http请求时会出错(比如业务需要同时推送大量模板消息时会使用多线程发送,实测30线程同时推送2000条模板消息约有10%因为获取不到连接报org.apache.http.conn.ConnectionPoolTimeoutException异常导致消息发送失败),参考:https://www.jianshu.com/p/48f5f57e9920

从连接池获取连接时不应该设置默认超时时间,实测多线程同时进行Http请求时会出错(比如业务需要同时推送大量模板消息时会使用多线程发送,实测30线程同时推送2000条模板消息约有10%因为获取不到连接报org.apache.http.conn.ConnectionPoolTimeoutException异常导致消息发送失败),参考:https://www.jianshu.com/p/48f5f57e9920
@binarywang binarywang merged commit 1b02b0a into Wechat-Group:develop Apr 27, 2020
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants