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

quic: fix crash when no onstream handler is set with unistream by efekrskl · Pull Request #64158 · nodejs/node · GitHub

/ node Public

quic: fix crash when no onstream handler is set with unistream - #64158

Merged
nodejs-github-bot merged 5 commits into
nodejs:mainfrom
efekrskl:fix/no-onstream-crash-quic
Jul 7, 2026
Merged

quic: fix crash when no onstream handler is set with unistream#64158
nodejs-github-bot merged 5 commits into
nodejs:mainfrom
efekrskl:fix/no-onstream-crash-quic

Conversation

Copy link
Copy Markdown
Member

This started as a fix for #64030 (unidirectional stream crashing when there's no onstream handler). Which was caused by JS synchronously destroying the stream (because there was no handler) and native code still trying to access it.

While testing that, I also ran into teardown issues around destroy() in the same repro. I ended up including this one too, because without it I couldn't test cleanly. Session::Impl::~Impl() could drop the last owner of the Session, then keep using session_->env() afterward. I changed the order so anything that still needs env() runs before the session can disappear.

efekrskl added 3 commits June 27, 2026 00:38
Signed-off-by: Efe Karasakal <hi@efe.dev>
Signed-off-by: Efe Karasakal <hi@efe.dev>
Signed-off-by: Efe Karasakal <hi@efe.dev>

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/quic

nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. labels Jun 26, 2026

pimterry 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

Some linting errors here but otherwise LGTM

Signed-off-by: Efe Karasakal <hi@efe.dev>

Copy link
Copy Markdown
Member Author

Some linting errors here but otherwise LGTM

Just fixed them, thanks!

efekrskl requested a review from jasnell June 30, 2026 20:19
pimterry added the request-ci Add this label to start a Jenkins CI on a PR. label Jul 1, 2026
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jul 4, 2026

This comment was marked as outdated.

This comment was marked as outdated.

Signed-off-by: Efe Karasakal <hi@efe.dev>

Copy link
Copy Markdown
Collaborator

pimterry added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Jul 7, 2026
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 7, 2026
nodejs-github-bot merged commit 2e8f4d7 into nodejs:main Jul 7, 2026
71 checks passed

Copy link
Copy Markdown
Collaborator

Landed in 2e8f4d7

aduh95 pushed a commit that referenced this pull request Jul 21, 2026
Signed-off-by: Efe Karasakal <hi@efe.dev>
PR-URL: #64158
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
RafaelGSS pushed a commit that referenced this pull request Jul 29, 2026
Signed-off-by: Efe Karasakal <hi@efe.dev>
PR-URL: #64158
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
aduh95 pushed a commit that referenced this pull request Aug 6, 2026
Signed-off-by: Efe Karasakal <hi@efe.dev>
PR-URL: #64158
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
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

c++ Issues and PRs that require attention from people who are familiar with C++. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL