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}"