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

How to reconnect redis-server when socket is closed? #16

Open
hozumi opened this issue Nov 11, 2010 · 1 comment
Open

How to reconnect redis-server when socket is closed? #16

hozumi opened this issue Nov 11, 2010 · 1 comment

Comments

@hozumi
Copy link

hozumi commented Nov 11, 2010

Hi, I'm using Clojure-1.2 branch to use connection pool. It seems that connection is closed after 5 minutes from last access. Then I get following error "java.net.SocketException: Socket is closed".
I use with-server macro in the same way as 1.0.4.
I want to know how to reconnect redis-server.
Am I missing something?

@ghost
Copy link

ghost commented Jan 2, 2011

I have this same issue. I think disabling the timeout in redis.conf ('timeout 0') will keep it from happening, but redis-clojure also needs to be able to detect the problem and reconnect. I haven't looked at the code enough to say how to do that.

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

1 participant