set timeout on sync request

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1241059 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2012-02-06 16:18:41 +00:00
parent de88978db0
commit d98d63d83e
1 changed files with 2 additions and 0 deletions

View File

@ -188,6 +188,8 @@ public class SyncStrategy {
"false"));
CommonsHttpSolrServer server = new CommonsHttpSolrServer(
node.getCoreUrl());
server.setConnectionTimeout(15000);
server.setSoTimeout(15000);
//System.out.println("ask " + node.getCoreUrl() + " to sync");
NamedList rsp = server.request(qr);
//System.out.println("response about syncing to leader:" + rsp + " node:"