From 4f2e328577412fa6de3d2cd53e21d2b4740bf7e5 Mon Sep 17 00:00:00 2001 From: Joe Fleming Date: Mon, 29 Feb 2016 11:58:52 -0700 Subject: [PATCH] fall back to pingTimeout setting for health check Fixes #6377 --- src/plugins/elasticsearch/lib/health_check.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/elasticsearch/lib/health_check.js b/src/plugins/elasticsearch/lib/health_check.js index 050bb85849671..ac11fe6950d9c 100644 --- a/src/plugins/elasticsearch/lib/health_check.js +++ b/src/plugins/elasticsearch/lib/health_check.js @@ -22,7 +22,7 @@ module.exports = function (plugin, server) { plugin.status.yellow('Waiting for Elasticsearch'); function waitForPong() { - return client.ping({ requestTimeout: config.get('elasticsearch.requestTimeout') }).catch(function (err) { + return client.ping().catch(function (err) { if (!(err instanceof NoConnections)) throw err; plugin.status.red(format('Unable to connect to Elasticsearch at %s.', config.get('elasticsearch.url')));