Skip to content
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

Weird/Slow behavior on after connection to Redis is restored #1050

Closed
pascalcmd opened this issue Jan 28, 2019 · 1 comment · Fixed by #1374
Closed

Weird/Slow behavior on after connection to Redis is restored #1050

pascalcmd opened this issue Jan 28, 2019 · 1 comment · Fixed by #1374

Comments

@pascalcmd
Copy link

Hi Marc,

I am having a weird behavior about the re-subscribtion in case of connection issues to Redis.

My test is pretty simple, after connecting to Redis, I am subscribing to a channel. Then I publish some messages and I can see that those messages have been received on the subscriber and the publisher also returned me a value of 1 (for 1 subscriber).

Then I restart Redis and the ConnectionMultiplexer fires well the events ConnectionFailed and ConnectionRestored. Just after the connection is restored, I publish a message, but nothing is happening on the Subscriber's callback/action but my publisher still return a value of 1. After one minute or so, I publish another message and this time the Publisher return me a value of 2 and the Subscriber's callback/action is fire once only.

I had tried also with a simple ping just after ConnectionRestored and it failed.

I am using StackExchange.Redis V2.0.519.

Is there anything I am missing while calling ConnectionMultiplexer.Connect(ConnectionString)? The connection string is straight forward without any options

@NickCraver
Copy link
Collaborator

Some glitches were fixed between 2.0.519 and 2.0.601, but some additional ones are in progress for 2.1.x. Overall, this is a duplicate of #1110 which is affected by #1120 (which should be fixed by #1374). Closing this just to combine issues down but a fix is on the way!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants