-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 connection timeouts causing protocol errors #127
Labels
Comments
mranney
added a commit
that referenced
this issue
Aug 11, 2011
Re-initialize the reply parser for every new connection. If a connection is terminated, the parser could be left in a bad state. After the auto-reconnect magic kicks in, it tries to reuse the old parser, which will not work. This change is visible to client programs if you depend on client.reply_parser.name being set immediately. It will now only be set after a connection is established. Thanks to @jhurliman for reporting and @pietern for the fix suggestion.
@jhurliman: can you please try this change and see if it fixes your issue? |
Upgraded to the new version just now, I'll let you know how it goes. |
Everything looks good so far, thanks! |
Awesome, thanks guys. I'll roll a new version for npm with this fix. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have an issue where node_redis is auto-reconnecting to redis and all queries hang indefinitely afterward. This is a related issue to that, where occasionally I will see one of the hung connections terminate with these kind of errors:
The text was updated successfully, but these errors were encountered: