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

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>
PR-URL: https://github.com/nodejs/node/pull/62648
Reviewed-By: Aviv Keller <me@aviv.sh>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Tim Perry authored and Antoine du Hamel committed 2026-05-07 18:14:57 +02:00
1 parent 00705a459a
commit f697c55e38
3 files changed
+131 -2

No files matched your search

+6
View File
@@ -204,6 +204,12 @@ added: v23.8.0
True if `endpoint.destroy()` has been called. Read only.
### `endpoint.listening`
* Type: {boolean}
True if the endpoint is actively listening for incoming connections. Read only.
### `endpoint.setSNIContexts(entries[, options])`
<!-- YAML