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

Bugfix: Ignore timeout callback from a successful connect (fixes #945) #935

Merged
merged 1 commit into from
May 2, 2021

Conversation

kristjanvalur
Copy link
Contributor

If redisAsyncConnect is done with a connect_timeout, and subsequently a redisAsyncCommand() happens but with no command_timeout, the connect timeout can still arrive, since it is never cancelled. This fix prevents such a belated timeout from cancelling a command.

@kristjanvalur kristjanvalur changed the title Ignore timeout callback from a successful connect Bugfix: Ignore timeout callback from a successful connect Apr 8, 2021
@kristjanvalur
Copy link
Contributor Author

fixes #945

@kristjanvalur kristjanvalur changed the title Bugfix: Ignore timeout callback from a successful connect Bugfix: Ignore timeout callback from a successful connect (fixes #945) Apr 23, 2021
@michael-grunder michael-grunder merged commit 667dbf5 into redis:master May 2, 2021
@michael-grunder
Copy link
Collaborator

Thanks for the fix, merged.

@kristjanvalur
Copy link
Contributor Author

Great. You'll find a regression test for this issue in PR #948 (those async tests depend on the "polling adapter" from pr #932

@kristjanvalur kristjanvalur deleted the pr5 branch May 3, 2021 15:19
@michael-grunder
Copy link
Collaborator

Sounds good.

I plan on merging the adapter too but wanted to run it locally a bit so I have a good enough understanding of it to answer questions about it.

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