We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af499f0 commit de19bd9Copy full SHA for de19bd9
lib/redis/connection/synchrony.rb
@@ -72,7 +72,15 @@ class Synchrony
72
73
def self.connect(config)
74
if config[:scheme] == "unix"
75
- conn = EventMachine.connect_unix_domain(config[:path], RedisClient)
+ begin
76
+ conn = EventMachine.connect_unix_domain(config[:path], RedisClient)
77
+ rescue RuntimeError => e
78
+ if e.message == "no connection"
79
+ raise Errno::ECONNREFUSED
80
+ else
81
+ raise e
82
+ end
83
84
elsif config[:scheme] == "rediss" || config[:ssl]
85
raise NotImplementedError, "SSL not supported by synchrony driver"
86
else
0 commit comments