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

Support PING while subscribing (RESP2) #1027

Merged
merged 3 commits into from
Dec 16, 2021

Conversation

bjosv
Copy link
Contributor

@bjosv bjosv commented Dec 10, 2021

This PR tunes the matching of pushed message replies to allow handling of PING.
Since PINGs response PONG consists of 2 elements its callback will now be found and called.

Since this command is valid to send during subscribing, and most commands in RESP3, the callback list is renamed from invalid to replies to detail this fact (same as in PR #1014).

Fixes #351

Some commands are valid to send during a subscribe in RESP2, and
most in RESP3. Renaming the callback list from `invalid` to `replies`
to detail this fact.
Copy link
Contributor

@zuiderkwast zuiderkwast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

async.c Outdated Show resolved Hide resolved
@michael-grunder michael-grunder merged commit d338426 into redis:master Dec 16, 2021
@michael-grunder
Copy link
Collaborator

Merged, thanks again!

@bjosv bjosv deleted the ping-while-subscribe branch December 17, 2021 10:50
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.

PING not allowed while subscribing
3 participants