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
0.9 RedisStore UNIX Domain Sockets (using Redis 0.8.2) #1169
Comments
You can just supply the redis store with your own redis instances. No need to supply it with options Sent from my iPhone On Feb 22, 2013, at 7:06 PM, James Thoburn notifications@github.com wrote:
|
You can't actually, at least not with the version of socket.io I'm running (0.9.13). As I stated above, passing an instance instead of an object results in an _EDIT_ |
For threaded instances of Node running on the same machine it makes more sense to use a Unix Domain Socket (UDS) than to use TCP. Redis supports UDS via
redis.createClient( filepath_for_unix_socket );
. Unfortunately, RedisStore relies on definedhost
andport
parameters. Unfortunately, the following method from the documentation doing the following leads to an EADDRINUSE error for both TCP and UNIX sockets:For TCP the following works.
But this does not
Nor do (unsurprisingly) any of these attempted workarounds
@guille has stated he is drastically changing RedisStore in 1.0, #862 (comment)
Hopefully this will allow for UDS use, but until then if you find yourself wanting to use one, you'll need to modify this code within branch 0.9 lib/stores/redis.js to add support.
To look something like this
The text was updated successfully, but these errors were encountered: