quic: fix potential crash from unobserved closed by pimterry · Pull Request #64134 · nodejs/node · GitHub
Skip to content

quic: fix potential crash from unobserved closed#64134

Open
pimterry wants to merge 1 commit into
nodejs:mainfrom
pimterry:fix-quic-closed-crash
Open

quic: fix potential crash from unobserved closed#64134
pimterry wants to merge 1 commit into
nodejs:mainfrom
pimterry:fix-quic-closed-crash

Conversation

@pimterry

Copy link
Copy Markdown
Member

(This is independent of the other "split up the h3-split PR" PRs I've just opened - not related to that stream, just something else I ran into)

This fixes a potential crash in QUIC generally. Currently if you don't listen to and handle errors from session.closed synchronously when the session opens (I think doing so is quite uncommon) then by default any remote client can crash the server. Tiny independent fix.

See the test for a demo: closed wasn't marked as handled, and so any error would trigger a unhandledRejection, which exits the process by default.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. quic Issues and PRs related to the QUIC implementation / HTTP/3. labels Jun 25, 2026
Signed-off-by: Tim Perry <pimterry@gmail.com>
@pimterry pimterry force-pushed the fix-quic-closed-crash branch from fa6eb73 to 4c10f54 Compare June 25, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run. quic Issues and PRs related to the QUIC implementation / HTTP/3.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants