You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
puts "Connecting to Redis..."
begin
redis = Redis.new
puts "Connected to Redis: #{redis}"
rescue e
abort "Failed to connect to Redis Server: #{e}"
end
the user will never get a raised error about failed to connect. in fact, the above code will block (unless u put it into a fiber)
my suggestion:
let us give a connectiontimeout to the parameter, and after xxx seconds if no connection, it will raise an error.
if the master redis server dies, it should throw an error as well
if the wrong password is given (or no password, but redis requires one), raise an error as well
ty for your time
The text was updated successfully, but these errors were encountered:
ghost
changed the title
please add support for disconnect / connection timeout
[suggestions] - please add support for disconnect / connection timeout
May 5, 2018
for example, if you do
the user will never get a raised error about failed to connect. in fact, the above code will block (unless u put it into a fiber)
my suggestion:
connectiontimeout
to the parameter, and after xxx seconds if no connection, it will raise an error.ty for your time
The text was updated successfully, but these errors were encountered: