lib/redic/client.rb in redic-0.0.6 vs lib/redic/client.rb in redic-0.0.7
- old
+ new
@@ -23,9 +23,12 @@
timestamp_connection
@semaphore.synchronize do
yield
end
+ rescue Errno::ECONNRESET
+ @connection = nil
+ retry
end
private
def establish_connection
begin