update connection client

master
yihua.huang 2013-11-04 00:53:01 +08:00
parent 09153ff715
commit 3c6fced48e
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}