Skip to content

Commit 97350a6

Browse files
committed
handling SocketError
1 parent d75708f commit 97350a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/redis/client.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ def establish_connection
336336
@connection = @options[:driver].connect(@options)
337337
@pending_reads = 0
338338
rescue TimeoutError,
339+
SocketError,
339340
Errno::ECONNREFUSED,
340341
Errno::EHOSTDOWN,
341342
Errno::EHOSTUNREACH,

0 commit comments

Comments
 (0)