mirror of https://github.com/apache/lucene.git
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:
parent
0f1b765c28
commit
1825356d26
|
@ -104,7 +104,8 @@ public class RecoveryStrategy extends Thread {
|
||||||
if (!leaderBaseUrl.equals(baseUrl)) {
|
if (!leaderBaseUrl.equals(baseUrl)) {
|
||||||
|
|
||||||
CommonsHttpSolrServer server = new CommonsHttpSolrServer(leaderBaseUrl);
|
CommonsHttpSolrServer server = new CommonsHttpSolrServer(leaderBaseUrl);
|
||||||
server.setSoTimeout(15000);
|
server.setConnectionTimeout(30000);
|
||||||
|
server.setSoTimeout(30000);
|
||||||
PrepRecovery prepCmd = new PrepRecovery();
|
PrepRecovery prepCmd = new PrepRecovery();
|
||||||
prepCmd.setCoreName(leaderCoreName);
|
prepCmd.setCoreName(leaderCoreName);
|
||||||
prepCmd.setNodeName(nodeName);
|
prepCmd.setNodeName(nodeName);
|
||||||
|
|
Loading…
Reference in New Issue