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

Correction for command timeout during pubsub #1038

Merged
merged 2 commits into from
Jan 11, 2022

Conversation

bjosv
Copy link
Contributor

@bjosv bjosv commented Jan 11, 2022

A timeout of a non-subscribe command is ignored during pubsub,
and will be handled as an idle timeout and the response is still awaited for.

This correction triggers a disconnect instead, the same behavior as when not in the subscribed state.

A timeout of a non-subscribe command will be ignored during pubsub.
It will be handled as an idle timeout and a response is awaited for.
Disconnect when a sent non-subscribe command triggers a timeout.
@bjosv
Copy link
Contributor Author

bjosv commented Jan 11, 2022

@michael-grunder There is a lot of testcase in this PR, and can be seen as to much noise, so I'm open to just merging the correction if that's the case :)

@michael-grunder michael-grunder merged commit ff860e5 into redis:master Jan 11, 2022
@michael-grunder
Copy link
Collaborator

Having caused as many segfaults as I have over the years, I'm pretty much always in favor of more test cases 😄

Thanks again, merged.

I will get your other pending PR merged today.

@bjosv bjosv deleted the cmd-timeout-in-async-pubsub branch January 12, 2022 09:04
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.

2 participants