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 crash when collecting the body #2992

Merged
merged 1 commit into from Apr 11, 2023
Merged

Fix crash when collecting the body #2992

merged 1 commit into from Apr 11, 2023

Conversation

0xTim
Copy link
Member

@0xTim 0xTim commented Apr 3, 2023

Fixes an issue where users may experience a crash when collecting the body in async routes due to pre-concurrency assumptions made by Vapor.

Resolves #2990

@0xTim 0xTim added the semver-patch Internal changes only label Apr 3, 2023
@0xTim 0xTim requested a review from gwynne April 3, 2023 15:19
@0xTim
Copy link
Member Author

0xTim commented Apr 3, 2023

I've tried writing a test for this but yet to be able to make it crash in the right place

Copy link
Contributor

@weissi weissi left a comment

Choose a reason for hiding this comment

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

lgtm

@0xTim 0xTim merged commit 00bd82b into main Apr 11, 2023
14 checks passed
@0xTim 0xTim deleted the body-collect-thread-issue branch April 11, 2023 12:20
@VaporBot
Copy link
Contributor

These changes are now available in 4.75.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-patch Internal changes only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Async routes that have a body always exhibit thread-unsafety
4 participants