From 7c1cbdceb2aa1ed3c6ae346dad04e5afb6eba973 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 17 Dec 2013 10:00:33 +0100 Subject: [PATCH] Cluster: use an hardcoded 60 sec timeout in redis-trib connections. Later this should be configurable from the command line but at least now we use something more appropriate for our use case compared to the redis-rb default timeout. --- src/redis-trib.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redis-trib.rb b/src/redis-trib.rb index b9a9ee60..9c06c22a 100755 --- a/src/redis-trib.rb +++ b/src/redis-trib.rb @@ -87,7 +87,7 @@ class ClusterNode print "Connecting to node #{self}: " STDOUT.flush begin - @r = Redis.new(:host => @info[:host], :port => @info[:port]) + @r = Redis.new(:host => @info[:host], :port => @info[:port], :timeout => 60) @r.ping rescue xputs "[ERR] Sorry, can't connect to node #{self}"