set a timeout on this solrserver as well

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1237297 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2012-01-29 14:27:58 +00:00
parent 50534a52b2
commit 6b2b5c5cab
1 changed files with 2 additions and 0 deletions

View File

@ -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);