Skip to content

Commit a405b13

Browse files
jasnelladuh95
authored andcommitted
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 9e7de01 commit a405b13

287 files changed

Lines changed: 26512 additions & 2694 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
@@ -2663,6 +2663,32 @@ added:
26632663
26642664
Opening a QUIC stream failed.
26652665

2666+
<a id="ERR_QUIC_STREAM_ABORTED"></a>
2667+
2668+
### `ERR_QUIC_STREAM_ABORTED`
2669+
2670+
<!-- YAML
2671+
added: REPLACEME
2672+
-->
2673+
2674+
> Stability: 1 - Experimental
2675+
2676+
The Node.js error code for a [`QuicError`][] thrown to abort a QUIC stream
2677+
or session with an explicit application or transport error code.
2678+
2679+
<a id="ERR_QUIC_STREAM_RESET"></a>
2680+
2681+
### `ERR_QUIC_STREAM_RESET`
2682+
2683+
<!-- YAML
2684+
added: REPLACEME
2685+
-->
2686+
2687+
> Stability: 1 - Experimental
2688+
2689+
A QUIC stream was reset by the peer. The error includes the reset code
2690+
provided by the peer.
2691+
26662692
<a id="ERR_QUIC_TRANSPORT_ERROR"></a>
26672693

26682694
### `ERR_QUIC_TRANSPORT_ERROR`
@@ -4455,6 +4481,7 @@ An error occurred trying to allocate memory. This should never happen.
44554481
[`MessagePort`]: worker_threads.md#class-messageport
44564482
[`Object.getPrototypeOf`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf
44574483
[`Object.setPrototypeOf`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf
4484+
[`QuicError`]: quic.md#class-quicerror
44584485
[`REPL`]: repl.md
44594486
[`ServerResponse`]: http.md#class-httpserverresponse
44604487
[`Temporal`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal

0 commit comments

Comments
 (0)