|
|
|
@ -83,8 +83,8 @@ public class WxCpConfiguration {
|
|
|
|
|
clientBuilder.setSoTimeout(5000);//连接池socket超时时间(单位ms)
|
|
|
|
|
clientBuilder.setIdleConnTimeout(60000);//空闲链接的超时时间(单位ms)
|
|
|
|
|
clientBuilder.setCheckWaitTime(60000);//空闲链接的检测周期(单位ms)
|
|
|
|
|
clientBuilder.setMaxConnPerHost(10);//每路最大连接数
|
|
|
|
|
clientBuilder.setMaxTotalConn(50);//连接池最大连接数
|
|
|
|
|
clientBuilder.setMaxConnPerHost(50);//每路最大连接数
|
|
|
|
|
clientBuilder.setMaxTotalConn(400);//连接池最大连接数
|
|
|
|
|
configStorage.setApacheHttpClientBuilder(clientBuilder); //设置自定义的ApacheHttpClientBuilder
|
|
|
|
|
|
|
|
|
|
return service;
|
|
|
|
|