Parent

Methods

Redis::Connection::UNIXSocket

Public Class Methods

connect(path, timeout) click to toggle source

This class doesn't include the mixin, because JRuby raises Errno::EAGAIN on read_nonblock even when IO.select says it is readable. This behavior shows in 1.6.6 in both 1.8 and 1.9 mode. Therefore, fall back on the default Unix socket implementation, without timeouts.

# File lib/redis/connection/ruby.rb, line 92
def self.connect(path, timeout)
  Timeout.timeout(timeout) do
    sock = new(path)
    sock
  end
rescue Timeout::Error
  raise TimeoutError
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.