parent
a3f2ebb193
commit
52eeac76e1
1 changed files with 1 additions and 1 deletions
|
@ -305,7 +305,7 @@ public class HttpClientBuilder {
|
|||
HttpClientConnectionManager cm;
|
||||
|
||||
if (connectionPoolSize > 0) {
|
||||
PoolingHttpClientConnectionManager tcm = new PoolingHttpClientConnectionManager(sf.build());
|
||||
PoolingHttpClientConnectionManager tcm = new PoolingHttpClientConnectionManager(sf.build(), null, null, null, connectionTTL, connectionTTLUnit);
|
||||
tcm.setMaxTotal(connectionPoolSize);
|
||||
if (maxPooledPerRoute == 0) maxPooledPerRoute = connectionPoolSize;
|
||||
tcm.setDefaultMaxPerRoute(maxPooledPerRoute);
|
||||
|
|
Loading…
Reference in a new issue