Skip to content

Fix crash when writablity becomes false and races against finishing the http request#768

Merged
fabianfett merged 3 commits into
swift-server:mainfrom
fabianfett:ff-fix-IdleWriteTimeoutRaceToEnd-crash
Sep 3, 2024
Merged

Fix crash when writablity becomes false and races against finishing the http request#768
fabianfett merged 3 commits into
swift-server:mainfrom
fabianfett:ff-fix-IdleWriteTimeoutRaceToEnd-crash

Conversation

@fabianfett

Copy link
Copy Markdown
Member

Motivation

If the channel's writability changed to false just before we finished a request, we currently run into a precondition.

Changes

  • Remove the precondition and handle the case appropiatly

Result

A crash less.

@fabianfett fabianfett requested a review from weissi September 3, 2024 11:18

@weissi weissi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Amazing, thank you!

@fabianfett fabianfett merged commit 1120541 into swift-server:main Sep 3, 2024
@fabianfett fabianfett added the 🔨 semver/patch No public API change. label Sep 3, 2024
@Lukasa Lukasa mentioned this pull request Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants