-
Notifications
You must be signed in to change notification settings - Fork 986
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
Unable to reconnect Pub/Sub connection with authorization #868
Comments
Lettuce itself prevents the execution of commands when it determines a subscribed state. We didn't consider in #579 that the connection is in a pristine state after reconnecting. We need to fix that in 5.1.1 and 4.5.1. |
mp911de
added a commit
that referenced
this issue
Oct 1, 2018
Lettuce now checks whether the current connection has written a subscription command in addition to the registered channels/patterns. This allows a more meaningful checking of allowed commands so that regular commands can be written to the connection before resubscribing. This change allows authentication again for connections that got reconnected and had previously subscriptions.
mp911de
added a commit
that referenced
this issue
Oct 1, 2018
Lettuce now checks whether the current connection has written a subscription command in addition to the registered channels/patterns. This allows a more meaningful checking of allowed commands so that regular commands can be written to the connection before resubscribing. This change allows authentication again for connections that got reconnected and had previously subscriptions.
mp911de
added a commit
that referenced
this issue
Oct 1, 2018
Lettuce now checks whether the current connection has written a subscription command in addition to the registered channels/patterns. This allows a more meaningful checking of allowed commands so that regular commands can be written to the connection before resubscribing. This change allows authentication again for connections that got reconnected and had previously subscriptions.
mp911de
added a commit
that referenced
this issue
Oct 1, 2018
Lettuce now checks whether the current connection has written a subscription command in addition to the registered channels/patterns. This allows a more meaningful checking of allowed commands so that regular commands can be written to the connection before resubscribing. This change allows authentication again for connections that got reconnected and had previously subscriptions.
That's fixed now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
We have application with publish subscribe connection to Redis. We encounter a problem, when using password - once connection is lost to Redis it can not be reestablished. In logs we see:
And stack trace is repeating once a 1 minute.
Looks like statefull connection once entering "Subscribed" state no longer allow AUTH command, even if actual network connection was reestablished and it's required to authenticate again.
Current Behavior
Expected behavior/code
Connections is restored with all previous subscriptions.
Environment
Possible Solution
Allow "AUTH" and "SELECT" commands during reconnect.
The text was updated successfully, but these errors were encountered: