# File lib/hiredis/ruby/connection.rb, line 46 def _connect_unix(path, timeout) sock = nil begin Timeout.timeout(timeout) do sock = UNIXSocket.new(path) end rescue SocketError => se raise se.message rescue Timeout::Error raise Errno::ETIMEDOUT end sock end