mirror of https://github.com/apache/lucene.git
tweak connect timeout
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1508191 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
72cf725675
commit
0036ab6eca
|
@ -67,7 +67,7 @@ public class SyncStrategy {
|
|||
ModifiableSolrParams params = new ModifiableSolrParams();
|
||||
params.set(HttpClientUtil.PROP_MAX_CONNECTIONS, 10000);
|
||||
params.set(HttpClientUtil.PROP_MAX_CONNECTIONS_PER_HOST, 20);
|
||||
params.set(HttpClientUtil.PROP_CONNECTION_TIMEOUT, 30000);
|
||||
params.set(HttpClientUtil.PROP_CONNECTION_TIMEOUT, 15000);
|
||||
params.set(HttpClientUtil.PROP_SO_TIMEOUT, 30000);
|
||||
params.set(HttpClientUtil.PROP_USE_RETRY, false);
|
||||
client = HttpClientUtil.createClient(params);
|
||||
|
@ -285,8 +285,8 @@ public class SyncStrategy {
|
|||
recoverRequestCmd.setCoreName(coreName);
|
||||
|
||||
HttpSolrServer server = new HttpSolrServer(baseUrl, client);
|
||||
server.setConnectionTimeout(45000);
|
||||
server.setSoTimeout(45000);
|
||||
server.setConnectionTimeout(15000);
|
||||
server.setSoTimeout(30000);
|
||||
try {
|
||||
server.request(recoverRequestCmd);
|
||||
} catch (Throwable t) {
|
||||
|
|
Loading…
Reference in New Issue