Permalink
Browse files

minor fix to reconnection code with major reliability effects

  • Loading branch information...
1 parent 745906d commit f223c018c4dd6ab32ebbdab464d3334dc432ab67 @antirez antirez committed Jun 9, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/redis.rb
View
2 lib/redis.rb
@@ -154,7 +154,7 @@ def call_command(argv)
connect_to_server if !@sock
begin
raw_call_command(argv.dup)
- rescue Errno::ECONNRESET
+ rescue Errno::ECONNRESET, Errno::EPIPE
@sock.close
connect_to_server
raw_call_command(argv.dup)

0 comments on commit f223c01

Please sign in to comment.