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

[Backport 8.x] Handle server closing connection after response body is sent #224

Merged
merged 3 commits into from
Feb 21, 2025

Conversation

JoshMock
Copy link
Member

backport b44dd13 from #223

* Handle EPIPE error when server unexpectedly closes the connection

* Add tests for EPIPE server disconnect edge case

* Drop irrelevant comment

* Cleanup of unneeded logic

* Explicitly handle EPIPE error

response 'close' event catches it implicitly on Linux, but apparently
not on Windows or Mac.

* Make error message check more permissive

* Make error message check even more permissive

(cherry picked from commit b44dd13)
@JoshMock JoshMock merged commit 3b8f18a into 8.x Feb 21, 2025
14 checks passed
@JoshMock JoshMock deleted the backport-223-to-8.x branch February 21, 2025 19:33
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.

1 participant