-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ruby 2.1.0 crashes when using a client initialised with options #479
Comments
Redis.new(host: '127.0.0.1').ping |
With what error does it abort?
|
This looks more like an issue with the combination: Commenting localhost for ip6 in my hosts table, 'solved' the issue. |
Not redis-rb's error then ;) |
agreed! /Users/pascal/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/redis-3.1.0/lib/redis/connection/ruby.rb:129: [BUG] rb_sys_fail_str(connect(2) for [fe80::1%lo0]:6379) - errno == 0 -- Crash Report log information -------------------------------------------- -- Control frame information ----------------------------------------------- test.rb:3:in -- C level backtrace information ------------------------------------------- -- Other runtime information -----------------------------------------------
[NOTE] [1] 20856 abort ruby test.rb |
This is still a problem with localhost, Ruby 2.2.1 and OS X 10.9.5 (Mavericks). I had to restrict redis to ~>2.0 which meant I had to restrict resque to ~>1.23. I don't expect you to reopen the issue, I just want to document that whatever this problem is, it is not fixed in Ruby 2.2.1 and it affects OS X versions less than Yosemite. |
@cindyward1 There are other routes to your local host than the named alias |
require 'redis'
Redis.new(host: 'localhost').ping
When redis is not running on localhost, the code above makes ruby 2.1.0 abort.
Using the initialiser without options, raises the expected exception:
Redis.new.ping
The text was updated successfully, but these errors were encountered: