-
Notifications
You must be signed in to change notification settings - Fork 140
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
Redis PUBSUB connection issue after idle period #52
Comments
I have the same issue here except using Have not researched it yet, but at the moment I'm suspecting the underlying socket has timed out but the library hasn't been notified or fails to call the callback. It also does not call the callback installed by Currently worked around it by setting a Will try get to the bottom of this... I don't like this kind of workaround! In case it's useful to anyone else debugging this issue: I think I've only seen it occur on Linux. Mac doesn't seem to behave the same way. |
@arrtchiu I've also seen that behavior on BLPOP using the sync client, our application uses very long lived connection in a few instances. I believe that the library defaults not sending tcp keepalives (you can set them), we tried setting a timeout on the BLPOP command itself and could still get "hung". Oh, I just want to say Thanks to Alex for providing this. |
I am using version 0.5.0 of the library and I have a pretty similar code as in the PUBSUB example. My application subscribes to a channel and receives messages.
What I am facing is that every Monday, the application is not being able to receive messages from Redis.
Is there any timeout that I should handle in case the connection remains idle during the weekend? Shall I configure something extra in my application or in Redis to bypass this?
Thank you in advance,
George
The text was updated successfully, but these errors were encountered: