update connection client

pull/88/head^2
yihua.huang 11 years ago
parent 09153ff715
commit 3c6fced48e

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

Loading…
Cancel
Save