Skip to content

[HTTP1] Tolerate immediate write errors #579

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

Merged
merged 2 commits into from
Apr 11, 2022

Conversation

fabianfett
Copy link
Member

Same fix for HTTP/1 that landed for HTTP/2 in #558.

Motivation

HTTP1ClientChannelHandler currently does not tolerate immediate write errors.

Changes

Make HTTP1ClientChannelHandler resilient to failing writes.

Result

Less crashes in AHC HTTP/1.

Same fix for HTTP/1 that landed for HTTP/2 in swift-server#558.

### Motivation

`HTTP1ClientChannelHandler` currently does not tolerate immediate write errors.

### Changes

Make `HTTP1ClientChannelHandler` resilient to failing writes.

### Result

Less crashes in AHC HTTP/1.
@fabianfett fabianfett requested a review from Lukasa April 11, 2022 12:11
@fabianfett fabianfett merged commit 0a2004b into swift-server:main Apr 11, 2022
@fabianfett fabianfett added the 🔨 semver/patch No public API change. label Apr 11, 2022
@fabianfett fabianfett deleted the ff-tolerate-write-error branch April 11, 2022 15:33
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.

2 participants