-
Notifications
You must be signed in to change notification settings - Fork 25
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
Comments
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
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?
The text was updated successfully, but these errors were encountered: