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

Invoke all callbacks during redisClusterAsyncDisconnect() #204

Merged
merged 1 commit into from
Mar 1, 2024

Conversation

bjosv
Copy link
Collaborator

@bjosv bjosv commented Mar 1, 2024

Don't skip calling redisAsyncDisconnect(context) on contexts with errors.
This makes sure that all pending request callbacks are invoked with a NULL reply, not only on contexts without errors.

Attempted to add a testcase covering this scenario, but could not reproduce it using simulated-redis tests.

Fixes #203

Don't skip calling redisAsyncDisconnect(context) on contexts with
errors. This makes sure that all pending request callbacks are
invoked with a NULL reply, not only on contexts without failures.
@bjosv bjosv merged commit 7312881 into Nordix:master Mar 1, 2024
32 checks passed
@bjosv bjosv deleted the fix-disconnect branch March 1, 2024 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

redisClusterAsyncDisconnect behaviour when a redisAsyncContext object has seen some error
2 participants