Skip to content

Commit cf91d18

Browse files
committed
quic: complete the internal implementation of QUIC
Signed-off-by: James M Snell <jasnell@gmail.com> Assisted-by: Opencode:Opus 4.6 PR-URL: #62876 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Robert Nagy <ronagy@icloud.com>
1 parent 2b112e7 commit cf91d18

287 files changed

Lines changed: 26484 additions & 2666 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

deps/ngtcp2/ngtcp2.gyp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@
206206
'defines': [
207207
'BUILDING_NGHTTP3',
208208
'NGHTTP3_STATICLIB',
209+
'DEBUGBUILD',
209210
],
210211
'dependencies': [
211212
'ngtcp2'
@@ -247,7 +248,10 @@
247248
},
248249
{
249250
'target_name': 'ngtcp2_test_server',
250-
'type': 'executable',
251+
# Disabled: ngtcp2 examples now require C++23 (<print>, <expected>,
252+
# std::println, std::expected) which is not yet supported on all
253+
# Node.js platforms. Re-enable when C++23 is available.
254+
'type': 'none',
251255
'cflags': [ '-Wno-everything' ],
252256
'include_dirs': [
253257
'',
@@ -305,7 +309,10 @@
305309
},
306310
{
307311
'target_name': 'ngtcp2_test_client',
308-
'type': 'executable',
312+
# Disabled: ngtcp2 examples now require C++23 (<print>, <expected>,
313+
# std::println, std::expected) which is not yet supported on all
314+
# Node.js platforms. Re-enable when C++23 is available.
315+
'type': 'none',
309316
'cflags': [ '-Wno-everything' ],
310317
'include_dirs': [
311318
'',

doc/api/errors.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2651,6 +2651,32 @@ added:
26512651
26522652
Opening a QUIC stream failed.
26532653

2654+
<a id="ERR_QUIC_STREAM_ABORTED"></a>
2655+
2656+
### `ERR_QUIC_STREAM_ABORTED`
2657+
2658+
<!-- YAML
2659+
added: REPLACEME
2660+
-->
2661+
2662+
> Stability: 1 - Experimental
2663+
2664+
The Node.js error code for a [`QuicError`][] thrown to abort a QUIC stream
2665+
or session with an explicit application or transport error code.
2666+
2667+
<a id="ERR_QUIC_STREAM_RESET"></a>
2668+
2669+
### `ERR_QUIC_STREAM_RESET`
2670+
2671+
<!-- YAML
2672+
added: REPLACEME
2673+
-->
2674+
2675+
> Stability: 1 - Experimental
2676+
2677+
A QUIC stream was reset by the peer. The error includes the reset code
2678+
provided by the peer.
2679+
26542680
<a id="ERR_QUIC_TRANSPORT_ERROR"></a>
26552681

26562682
### `ERR_QUIC_TRANSPORT_ERROR`
@@ -4436,6 +4462,7 @@ An error occurred trying to allocate memory. This should never happen.
44364462
[`MessagePort`]: worker_threads.md#class-messageport
44374463
[`Object.getPrototypeOf`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf
44384464
[`Object.setPrototypeOf`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf
4465+
[`QuicError`]: quic.md#class-quicerror
44394466
[`REPL`]: repl.md
44404467
[`ServerResponse`]: http.md#class-httpserverresponse
44414468
[`Writable`]: stream.md#class-streamwritable

0 commit comments

Comments
 (0)