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

fix context timeout not working as intended bug #1081

Merged
merged 2 commits into from
Nov 26, 2020
Merged

Conversation

bassosimone
Copy link
Contributor

This diff fixes the context timeout not working as intended bug
described in #994.

Before canceling the context we need to increase the counter so that
we're sure that canceling the context happens after we increased
the counter. Otherwise, it may actually happen before depending on the
choices made by the Go scheduler.

Closes #994. If I am
wrong we will reopen, but I think this is at least a good explanation.

This diff fixes the context timeout not working as intended bug
described in #994.

Before canceling the context we need to increase the counter so that
we're sure that canceling the context happens _after_ we increased
the counter. Otherwise, it may actually happen before depending on the
choices made by the Go scheduler.

Closes #994. If I am
wrong we will reopen, but I think this is at least a good explanation.
@bassosimone bassosimone merged commit 6d6943c into master Nov 26, 2020
@bassosimone bassosimone deleted the issue/994 branch November 26, 2020 11:13
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.

ci failure: context timeout not working as intended
1 participant