Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

set a timeout on this solrserver as well

Mark Robert Miller6b2b5c5cabb3
diff --git a/solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java b/solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java
index 630ec605829..f8701e37c97 100644
--- a/solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java
+++ b/solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java
@@ -321,6 +321,8 @@ public class SolrCmdDistributor {
CommonsHttpSolrServer server = new CommonsHttpSolrServer(fullUrl,
client);
+ server.setConnectionTimeout(30000);
+ server.setSoTimeout(30000);
clonedRequest.ursp = server.request(clonedRequest.ureq);