From cbb1c35f94a36e8871301fce435d516db3cd4256 Mon Sep 17 00:00:00 2001 From: kimchy Date: Wed, 20 Jul 2011 00:37:32 +0300 Subject: [PATCH] Network: Default (back) network.tcp.connect_timeout to 30s, closes #1134. --- .../java/org/elasticsearch/common/network/NetworkService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/common/network/NetworkService.java b/modules/elasticsearch/src/main/java/org/elasticsearch/common/network/NetworkService.java index f0a464126eb..0734ed83cf7 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/common/network/NetworkService.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/common/network/NetworkService.java @@ -59,7 +59,7 @@ public class NetworkService extends AbstractComponent { public static final ByteSizeValue TCP_DEFAULT_SEND_BUFFER_SIZE = new ByteSizeValue(32, ByteSizeUnit.KB); public static final ByteSizeValue TCP_DEFAULT_RECEIVE_BUFFER_SIZE = new ByteSizeValue(32, ByteSizeUnit.KB); - public static final TimeValue TCP_DEFAULT_CONNECT_TIMEOUT = new TimeValue(2, TimeUnit.SECONDS); + public static final TimeValue TCP_DEFAULT_CONNECT_TIMEOUT = new TimeValue(30, TimeUnit.SECONDS); } /**