use a connection timeout as well

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1243187 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2012-02-12 01:14:05 +00:00
parent 0f1b765c28
commit 1825356d26
1 changed files with 2 additions and 1 deletions

View File

@ -104,7 +104,8 @@ public class RecoveryStrategy extends Thread {
if (!leaderBaseUrl.equals(baseUrl)) {
CommonsHttpSolrServer server = new CommonsHttpSolrServer(leaderBaseUrl);
server.setSoTimeout(15000);
server.setConnectionTimeout(30000);
server.setSoTimeout(30000);
PrepRecovery prepCmd = new PrepRecovery();
prepCmd.setCoreName(leaderCoreName);
prepCmd.setNodeName(nodeName);