Skip to content

quic: add QuicEndpoint.listening & QuicStream.destroy() and tests#62648

Open
pimterry wants to merge 1 commit intonodejs:mainfrom
pimterry:test-quic-stream-lifecycle
Open

quic: add QuicEndpoint.listening & QuicStream.destroy() and tests#62648
pimterry wants to merge 1 commit intonodejs:mainfrom
pimterry:test-quic-stream-lifecycle

Conversation

@pimterry
Copy link
Copy Markdown
Member

@pimterry pimterry commented Apr 9, 2026

Starting to explore and cover the existing implementation. This covers the basic endpoint & stream lifecycle and the exposed properties.

Added endpoint.listening to match net.Server.listening and round of the set of properties, and stream.destroy() which is already called by quicSession.destroy() and documented, but didn't actually exist - without this, the test fails at clientSession.destroy().

Getting started on the easy bits here, I'm planning to slowly build up tests to cover the list in #60122 and patch any issues as I go.

(This currently doesn't build due to the unrelated #62595 issue, but there's no relationship, it works if you just comment the ngtcp2 test server/client build out).

Starting to explore and cover the existing implementation, this covers
the basic endpoint & stream lifecycle and the exposed properties.
Added endpoint.listening to match net.Server and round out endpoint
properties, and stream.destroy() which is already called by
quicSession.destroy() and documented, but didn't actually exist.

Signed-off-by: Tim Perry <pimterry@gmail.com>
@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 Apr 9, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.79%. Comparing base (f8b79a1) to head (fad3544).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #62648      +/-   ##
==========================================
- Coverage   89.80%   89.79%   -0.02%     
==========================================
  Files         699      699              
  Lines      216154   216174      +20     
  Branches    41317    41316       -1     
==========================================
- Hits       194122   194115       -7     
- Misses      14130    14175      +45     
+ Partials     7902     7884      -18     
Files with missing lines Coverage Δ
lib/internal/quic/quic.js 100.00% <100.00%> (ø)

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

@jasnell jasnell added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 9, 2026
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

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 pending requests for changes, and a CI started. 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.

4 participants