redis / hiredis-rb

Ruby wrapper for hiredis
BSD 3-Clause "New" or "Revised" License
320 stars 90 forks source link

IPv6 Support? #25

Closed dplummer closed 9 years ago

dplummer commented 10 years ago

It appears the current release of hiredis-rb doesn't support IPv6:

2.1.1 :006 > Redis.new(host: "::1", driver: :ruby).get(1)
 => nil 
2.1.1 :007 > Redis.new(host: "::1", driver: :hiredis).get(1)
RuntimeError: Address family for hostname not supported
from /home/dplummer/.rvm/gems/ruby-2.1.1/gems/redis-3.0.7/lib/redis/connection/hiredis.rb:16:in `connect'

(ruby 2.1.1, redis 2.8.8, redis gem 3.0.7, hiredis-rb 0.5.2)

I think this is from the hiredis C library. It looks like hiredis-rb is built against v0.11, and the IPv6 support hasn't been released yet. Am I on the right track there? Any plans for new releases?