Skip to content

quic: serialize stream reset code as string - #64577

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
manNomi:quic-serialize-stream-reset-code
Jul 27, 2026
Merged

quic: serialize stream reset code as string#64577
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
manNomi:quic-serialize-stream-reset-code

Conversation

@manNomi

@manNomi manNomi commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Description

QuicStreamState.toJSON() returned resetCode as a BigInt.
QuicStreamState.toString() serializes that object with
JSONStringify(), so serializing a live stream state threw
TypeError: Do not know how to serialize a BigInt. Calling
JSON.stringify() on the state failed for the same reason.

Serialize resetCode as a string, matching the handling of other 64-bit
QUIC state values. Using a string also preserves values outside JavaScript's
safe integer range. This only changes the JSON representation; it does not
change QUIC stream reset processing or the stored reset code.

Add a regression assertion that serializes a stream state and verifies the
parsed resetCode value.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/quic

@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 Jul 18, 2026
@codecov

codecov Bot commented Jul 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.13%. Comparing base (0992f6b) to head (bbe85a3).
⚠️ Report is 49 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #64577      +/-   ##
==========================================
- Coverage   90.14%   90.13%   -0.01%     
==========================================
  Files         741      741              
  Lines      242112   242112              
  Branches    45605    45591      -14     
==========================================
- Hits       218244   218233      -11     
  Misses      15360    15360              
- Partials     8508     8519      +11     
Files with missing lines Coverage Δ
lib/internal/quic/state.js 100.00% <100.00%> (ø)

... and 26 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.

@pimterry pimterry added the request-ci Add this label to start a Jenkins CI on a PR. label Jul 20, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jul 20, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@Ethan-Arrowood Ethan-Arrowood 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.

CI failure doesn't seem related to changes here. Can you rebase onto latest main, and then we'll try request-ci again? Thanks!

Signed-off-by: manNomi <hanmw110@naver.com>
@manNomi
manNomi force-pushed the quic-serialize-stream-reset-code branch from 83661c1 to bbe85a3 Compare July 23, 2026 05:13
@pimterry pimterry added the request-ci Add this label to start a Jenkins CI on a PR. label Jul 23, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jul 23, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@pimterry pimterry added the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 27, 2026
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 27, 2026
@nodejs-github-bot
nodejs-github-bot merged commit 58795e9 into nodejs:main Jul 27, 2026
71 checks passed
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 58795e9

aduh95 pushed a commit that referenced this pull request Aug 3, 2026
Signed-off-by: manNomi <hanmw110@naver.com>
PR-URL: #64577
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
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.

7 participants