update connection client
parent
09153ff715
commit
3c6fced48e
|
@ -30,7 +30,7 @@ public class HttpClientPool {
|
||||||
.register("http", PlainConnectionSocketFactory.INSTANCE)
|
.register("http", PlainConnectionSocketFactory.INSTANCE)
|
||||||
.register("https", SSLConnectionSocketFactory.getSocketFactory())
|
.register("https", SSLConnectionSocketFactory.getSocketFactory())
|
||||||
.build();
|
.build();
|
||||||
PoolingHttpClientConnectionManager connectionManager = new PoolingHttpClientConnectionManager(reg);
|
connectionManager = new PoolingHttpClientConnectionManager(reg);
|
||||||
connectionManager.setMaxTotal(poolSize);
|
connectionManager.setMaxTotal(poolSize);
|
||||||
connectionManager.setDefaultMaxPerRoute(100);
|
connectionManager.setDefaultMaxPerRoute(100);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue