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 deadlock in AsyncUtils.ToEnumerable() #1982

Merged
merged 1 commit into from Apr 8, 2020
Merged

Conversation

ob-stripe
Copy link
Contributor

r? @brandur-stripe
cc @stripe/api-libraries

All async calls in libraries should use ConfigureAwait(false) to avoid deadlocks. This is the same issue that I fixed a while back in #1658.

This blog post explains why this is necessary.

Fixes the issue reported in #1946 (comment).

Copy link
Contributor

@brandur-stripe brandur-stripe left a comment

Choose a reason for hiding this comment

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

Thanks for the background. LGTM!

@stripe-ci stripe-ci assigned ob-stripe and unassigned brandur-stripe Apr 8, 2020
@ob-stripe ob-stripe merged commit 7c40c0e into master Apr 8, 2020
@ob-stripe ob-stripe deleted the ob-fix-deadlock branch April 8, 2020 17:21
@ob-stripe
Copy link
Contributor Author

Released as 35.12.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants