FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

stream: fix deadlock when cloning webstreams by tsctx · Pull Request #51131 · nodejs/node · GitHub

/ node Public

stream: fix deadlock when cloning webstreams - #51131

Closed
tsctx wants to merge 1 commit into
nodejs:mainfrom
tsctx:stream/using-structuredClone-for-webstream-still-terminates-process
Closed

stream: fix deadlock when cloning webstreams#51131
tsctx wants to merge 1 commit into
nodejs:mainfrom
tsctx:stream/using-structuredClone-for-webstream-still-terminates-process

Conversation

tsctx commented Dec 12, 2023

Copy link
Copy Markdown
Member

Fixes #44985.
Fixed a problem where the process would not terminate if structuredClone was used for webstream and body was not consumed.

nodejs-github-bot added needs-ci PRs that need a full CI run. web streams labels Dec 12, 2023
lpinca added the request-ci Add this label to start a Jenkins CI on a PR. label Dec 13, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 13, 2023

Copy link
Copy Markdown
Collaborator

aduh95 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Can you amend the commit message so it matches our guidelines? using is not an imperative verb, I suggest something like stream: fix deadlock when cloning webstreams

* be prefixed with the name of the changed [subsystem](#appendix-subsystems)
and start with an imperative verb. Check the output of `git log --oneline
files/you/changed` to find out what subsystems your changes touch.

tsctx changed the title stream: using structuredClone for webstream still terminates process stream: fix deadlock when cloning webstreams Dec 17, 2023
H4ad added author ready PRs that have at least one approval, no outstanding review comments, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Dec 19, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 19, 2023

Copy link
Copy Markdown
Collaborator

tsctx commented Dec 20, 2023

Copy link
Copy Markdown
Member Author

There seems to be a problem with FinalizationRegistry, so please wait for that to be resolved.

Copy link
Copy Markdown
Collaborator

H4ad left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@tsctx Can you elaborate? (just use request change to block merge)

tsctx commented Dec 21, 2023

Copy link
Copy Markdown
Member Author

@H4ad
#49344
#47748

jasnell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Appreciate the work on this but this isn't the correct fix. The issue is the fact that cloned ReadableStream and WritableStream instances use a MessageChannel under the covers to communicate. The MessagePorts for each need to be unref'd in order to allow the process to exit. I'll have an alternative PR opened shortly.

tsctx closed this Dec 22, 2023
tsctx deleted the stream/using-structuredClone-for-webstream-still-terminates-process branch December 22, 2023 04:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. needs-ci PRs that need a full CI run. web streams

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: using structuredClone with ReadableStream prevents process from exiting

7 participants


Back | FazBrowse Home | New Git URL