Permalink
Browse files

Changed ThreadSafeClientConnManager to PoolingClientConnectionManager…

… following HttpClient version change.
  • Loading branch information...
1 parent 137e3f1 commit 69a3638194f9c992684a7519d4c499c80105d714 @pgelinas pgelinas committed Aug 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 org.ektorp/src/main/java/org/ektorp/http/StdHttpClient.java
@@ -29,11 +29,11 @@
import org.apache.http.conn.ssl.SSLSocketFactory;
import org.apache.http.entity.InputStreamEntity;
import org.apache.http.entity.StringEntity;
-import org.apache.http.impl.client.ContentEncodingHttpClient;
import org.apache.http.impl.client.DecompressingHttpClient;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.impl.client.cache.CacheConfig;
import org.apache.http.impl.client.cache.CachingHttpClient;
+import org.apache.http.impl.conn.PoolingClientConnectionManager;
import org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager;
import org.apache.http.params.BasicHttpParams;
import org.apache.http.params.HttpConnectionParams;
@@ -287,7 +287,7 @@ public ClientConnectionManager configureConnectionManager(
SchemeRegistry schemeRegistry = new SchemeRegistry();
schemeRegistry.register(configureScheme());
- ThreadSafeClientConnManager cm = new ThreadSafeClientConnManager(schemeRegistry);
+ PoolingClientConnectionManager cm = new PoolingClientConnectionManager(schemeRegistry);
cm.setMaxTotal(maxConnections);
cm.setDefaultMaxPerRoute(maxConnections);
conman = cm;

0 comments on commit 69a3638

Please sign in to comment.