Skip to content

Fix redisAsyncDisconnect to wait for pending replies in pub/sub mode - #1321

Open
sthairno wants to merge 2 commits into
redis:masterfrom
sthairno:fix/disconnect_during_pubsub_mode
Open

Fix redisAsyncDisconnect to wait for pending replies in pub/sub mode#1321
sthairno wants to merge 2 commits into
redis:masterfrom
sthairno:fix/disconnect_during_pubsub_mode

Conversation

@sthairno

Copy link
Copy Markdown

Fixes #1320


Hello, I fixed an issue when Pub/Sub mode is enabled, redisAsyncDisconnect could disconnect before pending reply handling had completed.
This change is based on the approach in #1038. If you spot any problems, please let me know.

Thanks!

@jit-ci

jit-ci Bot commented Feb 22, 2026

Copy link
Copy Markdown

Hi, I’m Jit, a friendly security platform designed to help developers build secure applications from day zero with an MVS (Minimal viable security) mindset.

In case there are security findings, they will be communicated to you as a comment inside the PR.

Hope you’ll enjoy using Jit.

Questions? Comments? Want to learn more? Get in touch with us.

@sthairno
sthairno marked this pull request as ready for review February 22, 2026 18:36
@sthairno sthairno changed the title Fix/disconnect during pubsub mode Fix redisAsyncDisconnect to wait for pending replies in pub/sub mode Feb 22, 2026
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.

redisAsyncDisconnect closes the socket immediately without waiting for replies when RESP3 + SUBSCRIBE is used

1 participant