Skip to content
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

Default "localhost" doesn't work if localhost has an IPv6 address #150

Closed
jaylevitt opened this issue Dec 9, 2011 · 1 comment
Closed

Comments

@jaylevitt
Copy link

You mentioned in #42 that OS X has an IPv6 address for localhost that confuses dalli, and now I've seen it on a fresh Ubuntu Oneiric 64-bit install too:

$ host localhost
localhost has address 127.0.0.1
localhost has IPv6 address ::1
$ rails c
1.9.3p0 :001 > Rails.cache.clear
Dalli::NetworkError: localhost:11211 is down: 

When I switch to:

config.cache_store = :dalli_store, "127.0.0.1:11211"

it starts working. Maybe that should be the default, since there's probably nobody that's running memcached solely for an IPv6 localhost?

@mperham
Copy link
Collaborator

mperham commented Dec 11, 2011

Good idea.

@mperham mperham closed this as completed Dec 11, 2011
poiyzy added a commit to poiyzy/ruby-china that referenced this issue Nov 10, 2013
terceiro added a commit to noosfero/noosfero that referenced this issue Nov 5, 2015
In some situations 'localhost' will just not work.
See petergoldstein/dalli#150
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants