*/
@Inject
public DefaultHttpTransportService(ThreadPoolService threadPoolService, Settings settings) {
this.threadPoolService = threadPoolService;
this.settings = settings;
PoolingClientConnectionManager poolingClientConnectionManager = new PoolingClientConnectionManager();
poolingClientConnectionManager.setMaxTotal(settings.getAsInt("http.client.max_total", 100));
poolingClientConnectionManager.setDefaultMaxPerRoute(settings.getAsInt("http.client.default_max_per_route", 50));
final HttpParams httpParams = new BasicHttpParams();
HttpConnectionParams.setConnectionTimeout(httpParams, settings.getAsInt("http.client.connect.timeout", 5000));
HttpConnectionParams.setSoTimeout(httpParams, settings.getAsInt("http.client.accept.timeout", 5000));
httpClient = new DefaultHttpClient(poolingClientConnectionManager, httpParams);
}