Skip to content

Commit

Permalink
PoolingClientConnectionManager is deprecated in the referenced versio…
Browse files Browse the repository at this point in the history
…n of httpclient, but apparently its replacement (PoolingHttpClientConnectionManager) has different behavior that breaks our usage, so we have to continue using the deprecated class for now (#17)
  • Loading branch information
twincitiesguy authored Jul 17, 2021
1 parent 2789a51 commit 1a1183c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/emc/rest/smart/SmartClientFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ static ApacheHttpClient4Handler createApacheClientHandler(SmartConfig smartConfi
ClientConfig clientConfig = new DefaultClientConfig();

// set up multi-threaded connection pool
org.apache.http.impl.conn.PoolingHttpClientConnectionManager connectionManager = new org.apache.http.impl.conn.PoolingHttpClientConnectionManager();
// TODO: find a non-deprecated connection manager that works (swapping out with
// PoolingHttpClientConnectionManager will break threading)
org.apache.http.impl.conn.PoolingClientConnectionManager connectionManager = new org.apache.http.impl.conn.PoolingClientConnectionManager();
// 999 maximum active connections (max allowed)
connectionManager.setDefaultMaxPerRoute(999);
connectionManager.setMaxTotal(999);
Expand Down

0 comments on commit 1a1183c

Please sign in to comment.