quic: add QuicEndpoint.listening & QuicStream.destroy() and tests - #62648
Merged
nodejs-github-bot merged 1 commit intoApr 13, 2026
Conversation
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>
avivkeller
approved these changes
Apr 9, 2026
jasnell
approved these changes
Apr 9, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. 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
🚀 New features to boost your workflow:
|
Collaborator
Collaborator
Starting to explore and cover the existing implementation. This covers the basic endpoint & stream lifecycle and the exposed properties.
Added
endpoint.listeningto match net.Server.listening and round of the set of properties, andstream.destroy()which is already called byquicSession.destroy()and documented, but didn't actually exist - without this, the test fails atclientSession.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).