diff --git a/src/java/org/apache/solr/handler/SnapPuller.java b/src/java/org/apache/solr/handler/SnapPuller.java index 1f95beac7ea..32fecdc088f 100644 --- a/src/java/org/apache/solr/handler/SnapPuller.java +++ b/src/java/org/apache/solr/handler/SnapPuller.java @@ -114,8 +114,8 @@ public class SnapPuller { // no requests are kept waiting for an idle connection. mgr.getParams().setDefaultMaxConnectionsPerHost(10000); mgr.getParams().setMaxTotalConnections(10000); - mgr.getParams().setSoTimeout(connTimeout == null ? 20000 : Integer.parseInt(connTimeout)); //20 secs - mgr.getParams().setConnectionTimeout(readTimeout == null ? 5000 : Integer.parseInt(readTimeout)); //5 secs + mgr.getParams().setSoTimeout(readTimeout == null ? 20000 : Integer.parseInt(readTimeout)); //20 secs + mgr.getParams().setConnectionTimeout(connTimeout == null ? 5000 : Integer.parseInt(connTimeout)); //5 secs HttpClient httpClient = new HttpClient(mgr); if (client == null && connTimeout == null && readTimeout == null) client = httpClient; return httpClient;