syncConnectionManager.setMaxTotal(Integer.MAX_VALUE);
syncConnectionManager.setDefaultMaxPerRoute(Integer.MAX_VALUE);
// Create clients
setOption(Option.HTTPCLIENT, HttpClientBuilder.create().setDefaultRequestConfig(clientConfig).setConnectionManager(syncConnectionManager).build());
SyncIdleConnectionMonitorThread syncIdleConnectionMonitorThread = new SyncIdleConnectionMonitorThread(syncConnectionManager);
setOption(Option.SYNC_MONITOR, syncIdleConnectionMonitorThread);
syncIdleConnectionMonitorThread.start();
DefaultConnectingIOReactor ioreactor;
PoolingNHttpClientConnectionManager asyncConnectionManager;
try {
ioreactor = new DefaultConnectingIOReactor();