-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Refreshing nodes on interval timer breaks socket.io pubsub adapter #696
Comments
luin
added a commit
that referenced
this issue
Sep 14, 2018
This fix will skip the subscriber who can't execute any command. Close #696
A fix (WIP) is here #697. Waiting for tests to be added. |
If you modify it referring comment, Is there any problem? |
luin
added a commit
that referenced
this issue
Oct 6, 2018
Previously (v3 & v4.0.0), ioredis reuse the existing connection for subscription, which will cause problem when executing commands on the reused connection. From now on, a specialized connection will be created when any subscription has made. This solves the problem above perfectly. Close #696
luin
added a commit
that referenced
this issue
Oct 6, 2018
Previously (v3 & v4.0.0), ioredis reuse the existing connection for subscription, which will cause problem when executing commands on the reused connection. From now on, a specialized connection will be created when any subscription has made. This solves the problem above perfectly. Close #696
luin
added a commit
that referenced
this issue
Oct 6, 2018
Previously (v3 & v4.0.0), ioredis reuse the existing connection for subscription, which will cause problem when executing commands on the reused connection. From now on, a specialized connection will be created when any subscription has made. This solves the problem above perfectly. Close #696
luin
added a commit
that referenced
this issue
Oct 6, 2018
Previously (v3 & v4.0.0), ioredis reuse the existing connection for subscription, which will cause problem when executing commands on the reused connection. From now on, a specialized connection will be created when any subscription has made. This solves the problem above perfectly. Close #696
luin
added a commit
that referenced
this issue
Oct 6, 2018
Previously (v3 & v4.0.0), ioredis reuse the existing connection for subscription, which will cause problem when executing commands on the reused connection. From now on, a specialized connection will be created when any subscription has made. This solves the problem above perfectly. Close #696
luin
added a commit
that referenced
this issue
Oct 6, 2018
Previously (v3 & v4.0.0), ioredis reuse the existing connection for subscription, which will cause problem when executing commands on the reused connection. From now on, a specialized connection will be created when any subscription has made. This solves the problem above perfectly. Close #696
luin
added a commit
that referenced
this issue
Oct 6, 2018
Previously (v3 & v4.0.0), ioredis reuse the existing connection for subscription, which will cause problem when executing commands on the reused connection. From now on, a specialized connection will be created when any subscription has made. This solves the problem above perfectly. Close #696
luin
added a commit
that referenced
this issue
Oct 6, 2018
Previously (v3 & v4.0.0), ioredis reuse the existing connection for subscription, which will cause problem when executing commands on the reused connection. From now on, a specialized connection will be created when any subscription has made. This solves the problem above perfectly. Close #696
luin
added a commit
that referenced
this issue
Oct 6, 2018
Previously (v3 & v4.0.0), ioredis reuse the existing connection for subscription, which will cause problem when executing commands on the reused connection. From now on, a specialized connection will be created when any subscription has made. This solves the problem above perfectly. Close #696
luin
added a commit
that referenced
this issue
Oct 6, 2018
Previously (v3 & v4.0.0), ioredis reuse the existing connection for subscription, which will cause problem when executing commands on the reused connection. From now on, a specialized connection will be created when any subscription has made. This solves the problem above perfectly. Close #696
luin
added a commit
that referenced
this issue
Oct 6, 2018
Previously (v3 & v4.0.0), ioredis reuse the existing connection for subscription, which will cause problem when executing commands on the reused connection. From now on, a specialized connection will be created when any subscription has made. This solves the problem above perfectly. Close #696
luin
added a commit
that referenced
this issue
Oct 8, 2018
* fix(cluster): robust solution for pub/sub in cluster Previously (v3 & v4.0.0), ioredis reuse the existing connection for subscription, which will cause problem when executing commands on the reused connection. From now on, a specialized connection will be created when any subscription has made. This solves the problem above perfectly. Close #696
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using socket.io-adapter causes the redis connection to enter subscriber only mode, any other command causes an error, and a reconnect.
Therefore the ioredis interval timer which refreshes cluster nodes every 5 seconds causes an error, and continual reconnections due to the fact that is runs
CLUSTER NODES
which is not allowed.Not sure how to resolve this, given the purpose of the interval – but I thought you should be aware.
The text was updated successfully, but these errors were encountered: