GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — quic: truncate CONNECTION_CLOSE frame reason field by efekrskl · Pull Request #66644 · nodejs/node

Conversation

@efekrskl

@efekrskl efekrskl commented Oct 10, 2026

Copy link
Copy Markdown
Member

Long reason strings inside a CONNECTION_CLOSE frame could exceed the space available and crash the process.

This PR limits the reason string to 256 UTF-8 bytes. Any string longer than the limit will get truncated. Also adds new tests and updates the documentation.

I think 256 bytes is a sensible default because the default maximum UDP datagram payload size is 1200 bytes. Before the handshake ngtcp2 can coalesce packets, encoding the same reason with 768 (3x256) bytes at most, this should leave enough headroom. This also matches Google QUICHE's limit

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nodejs-github-bot

nodejs-github-bot commented Oct 10, 2026

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/quic
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs involving general changes in the lib/ or src/ directories. needs-ci PRs that need a full CI run. labels Oct 10, 2026
efekrskl added 2 commits October 10, 2026 14:37
@efekrskl
quic: truncate CONNECTION_CLOSE frame reason field
a71068b
Signed-off-by: Efe Karasakal <[email protected]>
@efekrskl
quic: update docs
63c637c
Signed-off-by: Efe Karasakal <[email protected]>
@efekrskl
efekrskl force-pushed the quic/truncate-close-reason branch from 8f2fdd1 to 63c637c Compare October 10, 2026 12:38
@codecov

codecov Bot commented Oct 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.49%. Comparing base (c0daf39) to head (f37498d).
⚠️ Report is 155 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #66644      +/-   ##
==========================================
+ Coverage   90.43%   90.49%   +0.06%     
==========================================
  Files         791      797       +6     
  Lines      276593   277598    +1005     
  Branches    53112    53330     +218     
==========================================
+ Hits       250126   251204    +1078     
+ Misses      16867    16800      -67     
+ Partials     9600     9594       -6     

see 83 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@inoway46

This comment has been minimized.

Sign in to view
@efekrskl
quic: add test
b1f7e9e
@jasnell jasnell added this to QUIC Team Oct 11, 2026
@efekrskl efekrskl added the quic Issues and PRs related to the QUIC transport implementation. label Oct 13, 2026
pimterry
pimterry reviewed Oct 15, 2026
View reviewed changes
Comment thread test/parallel/test-quic-session-close-reason-truncation.mjs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@pimterry pimterry moved this to Ready for Review in QUIC Team Oct 15, 2026
@efekrskl
quic: don't use setTimeout in the tests
f37498d
Signed-off-by: Efe Karasakal <[email protected]>
pimterry
pimterry approved these changes Oct 16, 2026
View reviewed changes
@pimterry pimterry added the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Oct 16, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Oct 16, 2026
@nodejs-github-bot

nodejs-github-bot commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/78436/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pimterry pimterry added the resume-ci Add this label to resume the latest eligible Jenkins CI run on a PR with an approving review. label Oct 19, 2026
@github-actions github-actions Bot removed the resume-ci Add this label to resume the latest eligible Jenkins CI run on a PR with an approving review. label Oct 19, 2026
@nodejs-github-bot

nodejs-github-bot commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/78482/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pimterry pimterry added commit-queue PRs queued for automated landing through the Commit Queue. commit-queue-squash PRs the Commit Queue should land as one squashed commit. labels Oct 20, 2026
@nodejs-github-bot
nodejs-github-bot merged commit 1a54c4f into nodejs:main Oct 20, 2026
76 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator

Landed in 1a54c4f

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-project-automation github-project-automation Bot moved this from Ready for Review to Done in QUIC Team Oct 20, 2026
@nodejs-github-bot nodejs-github-bot removed the commit-queue PRs queued for automated landing through the Commit Queue. label Oct 20, 2026
@aduh95 aduh95 mentioned this pull request Oct 27, 2026
2026-10-28, Version 27.0.0-alpha.0.0.0 (Alpha) #67062
Merged
aduh95 pushed a commit that referenced this pull request Nov 12, 2026
@efekrskl @aduh95
quic: truncate CONNECTION_CLOSE frame reason field
37b4435
Signed-off-by: Efe Karasakal <[email protected]>
PR-URL: #66644
Reviewed-By: Tim Perry <[email protected]>
@github-actions github-actions Bot mentioned this pull request Nov 20, 2026
2026-11-30, Version 26.14.0 'Lithium' (LTS) #67664
Open
gabylb pushed a commit to gabylb/node that referenced this pull request Nov 27, 2026
@efekrskl @gabylb
quic: truncate CONNECTION_CLOSE frame reason field
8f461e1
Signed-off-by: Efe Karasakal <[email protected]>
PR-URL: nodejs#66644
Reviewed-By: Tim Perry <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@pimterry pimterry pimterry approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. commit-queue-squash PRs the Commit Queue should land as one squashed commit. lib / src Issues and PRs involving general changes in the lib/ or src/ directories. needs-ci PRs that need a full CI run. quic Issues and PRs related to the QUIC transport implementation.

Projects

QUIC Team
Status: Done

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@efekrskl @nodejs-github-bot @inoway46 @pimterry
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.