From 0977b793da6f9f9bf98c4981d2bd571be839ac21 Mon Sep 17 00:00:00 2001 From: Austin McKinley Date: Fri, 16 Sep 2011 14:15:55 -0700 Subject: [PATCH] adding timeout to list of connection failures --- .../elasticsearch/common/transport/NetworkExceptionHelper.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/common/transport/NetworkExceptionHelper.java b/modules/elasticsearch/src/main/java/org/elasticsearch/common/transport/NetworkExceptionHelper.java index 71f323b596f..283df64487a 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/common/transport/NetworkExceptionHelper.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/common/transport/NetworkExceptionHelper.java @@ -52,6 +52,9 @@ public class NetworkExceptionHelper { if (e.getMessage().contains("Broken pipe")) { return true; } + if (e.getMessage().contains("Connection timed out")) { + return true; + } } return false; }