-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
Redix.PubSub
doesn't reconnect and die with error :closed
#268
Comments
On the app that you shared (thanks for that by the way!), I do not see any logs like
after running the |
@fnicastri can you try the branch at #269 and see if it fixes it? I think this was actually a bug! defp deps do
[
# ...
{:redix, github: "whatyouhide/redix", branch: "al/fix-conn-errors-authing"}
]
end |
:closed
Redix.PubSub
doesn't reconnect and die with error :closed
Yes! it works! Just a quick question: starting the Thank you |
@fnicastri yes it is most likely, it depends on the use case but generally yes. |
Thanks @whatyouhide! I've been running a test for over an hour and it has never missed a reconnection. |
I released 1.5.1, thanks for reporting and fantastic catch. 💟 |
Thank you for the amazing work! |
We use Redix.PubSub to subscribe a queue on a remote Redis server.
When the connection goes down most of the time Redix.PubSub die with
:closed
error.In the same system we use Redix too to send messages to the same server, this process, on the contrary, reconnect without issues.
Using
MONITOR
we can see the "AUTH" messages on the server.I can reproduce the error in a clean Phoenix project, you can find it here
Output
system
also tested with
The text was updated successfully, but these errors were encountered: