-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
streams: forward errors correctly for duplexPair endpoints #61098
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
base: main
Are you sure you want to change the base?
Conversation
fix the duplexPair implementation so that when one side is destroyed with an error, the other side also receives the error or a close event as appropriate. previous behavior caused sideA to never emit an 'error' or 'close' when sideB errored, which prevented users from observing or handling the paired stream failure. Fixes: nodejs#61015
|
Review requested:
|
mcollina
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #61098 +/- ##
==========================================
- Coverage 88.53% 88.51% -0.02%
==========================================
Files 703 703
Lines 208546 208559 +13
Branches 40217 40224 +7
==========================================
- Hits 184634 184612 -22
- Misses 15926 15971 +45
+ Partials 7986 7976 -10
🚀 New features to boost your workflow:
|
|
This is a relevant fail: |
|
This would also be semver-major, unless hidden behind an option. |
|
Thanks for flagging this. |
fix the duplexPair implementation so that when one side is destroyed with an error, the other side also receives the error or a close event as appropriate.
previous behavior caused sideA to never emit an 'error' or 'close' when sideB errored, which prevented users from observing or handling the paired stream failure.
Fixes: #61015