forwardProxy = targetHost.getForwardProxy();
}
Integer maxConnectionPerRoute = E3HttpClientConfigurer.DEFAULT_CONNECTIONS_PER_ROUTE;
ConnectionParameters connectionParameters = targetHost.getConnectionParameters();
if(connectionParameters != null) {
// get first socket timeout settings find (they are all equals)
if(socketTimeOut == null) {
socketTimeOut = connectionParameters.getSocketTimeout();
}
// get first connection timeout settings find (they are all equals)
if(connectionTimeOut == null) {
connectionTimeOut = connectionParameters.getConnectionTimeout();
}
if(connectionParameters.getMaxConnections() != null) {
maxConnectionPerRoute = connectionParameters.getMaxConnections();
httpClientConfigurer.getConnectionsPerRoutes().put(targetHost, maxConnectionPerRoute);
}
}
maxConnectionsPool = maxConnectionsPool + maxConnectionPerRoute;