Skip to content

Commit 929f83a

Browse files
authored
Merge pull request #631 from hokuts/master
handling SocketError
2 parents b362cf2 + 97350a6 commit 929f83a

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
@@ -334,6 +334,7 @@ def establish_connection
334334
@connection = @options[:driver].connect(@options)
335335
@pending_reads = 0
336336
rescue TimeoutError,
337+
SocketError,
337338
Errno::ECONNREFUSED,
338339
Errno::EHOSTDOWN,
339340
Errno::EHOSTUNREACH,

0 commit comments

Comments
 (0)