Commit 3c6fced4 authored by yihua.huang's avatar yihua.huang

update connection client

parent 09153ff7
......@@ -30,7 +30,7 @@ public class HttpClientPool {
.register("http", PlainConnectionSocketFactory.INSTANCE)
.register("https", SSLConnectionSocketFactory.getSocketFactory())
.build();
PoolingHttpClientConnectionManager connectionManager = new PoolingHttpClientConnectionManager(reg);
connectionManager = new PoolingHttpClientConnectionManager(reg);
connectionManager.setMaxTotal(poolSize);
connectionManager.setDefaultMaxPerRoute(100);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment