Skip to content

Commit cdae315

Browse files
committed
quic: start adding in the internal quic js api
While the external API for QUIC is expected to be the WebTransport API primarily, this provides the internal API for QUIC that aligns with the native C++ QUIC components. PR-URL: #53256 Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent 103b843 commit cdae315

12 files changed

+3187
-373
lines changed

.nycrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"test/**",
55
"tools/**",
66
"benchmark/**",
7-
"deps/**"
7+
"deps/**",
88
],
99
"reporter": [
1010
"html",

doc/api/errors.md

+36
Original file line numberDiff line numberDiff line change
@@ -3644,6 +3644,42 @@ removed: v10.0.0
36443644

36453645
The `node:repl` module was unable to parse data from the REPL history file.
36463646

3647+
<a id="ERR_QUIC_CONNECTION_FAILED"></a>
3648+
3649+
### `ERR_QUIC_CONNECTION_FAILED`
3650+
3651+
<!-- YAML
3652+
added: REPLACEME
3653+
-->
3654+
3655+
> Stability: 1 - Experimental
3656+
3657+
Establishing a QUIC connection failed.
3658+
3659+
<a id="ERR_QUIC_ENDPOINT_CLOSED"></a>
3660+
3661+
### `ERR_QUIC_ENDPOINT_CLOSED`
3662+
3663+
<!-- YAML
3664+
added: REPLACEME
3665+
-->
3666+
3667+
> Stability: 1 - Experimental
3668+
3669+
A QUIC Endpoint closed with an error.
3670+
3671+
<a id="ERR_QUIC_OPEN_STREAM_FAILED"></a>
3672+
3673+
### `ERR_QUIC_OPEN_STREAM_FAILED`
3674+
3675+
<!-- YAML
3676+
added: REPLACEME
3677+
-->
3678+
3679+
> Stability: 1 - Experimental
3680+
3681+
Opening a QUIC stream failed.
3682+
36473683
<a id="ERR_SOCKET_CANNOT_SEND"></a>
36483684

36493685
### `ERR_SOCKET_CANNOT_SEND`

lib/internal/errors.js

+3
Original file line numberDiff line numberDiff line change
@@ -1644,6 +1644,9 @@ E('ERR_PARSE_ARGS_UNKNOWN_OPTION', (option, allowPositionals) => {
16441644
E('ERR_PERFORMANCE_INVALID_TIMESTAMP',
16451645
'%d is not a valid timestamp', TypeError);
16461646
E('ERR_PERFORMANCE_MEASURE_INVALID_OPTIONS', '%s', TypeError);
1647+
E('ERR_QUIC_CONNECTION_FAILED', 'QUIC connection failed', Error);
1648+
E('ERR_QUIC_ENDPOINT_CLOSED', 'QUIC endpoint closed: %s (%d)', Error);
1649+
E('ERR_QUIC_OPEN_STREAM_FAILED', 'Failed to open QUIC stream', Error);
16471650
E('ERR_REQUIRE_CYCLE_MODULE', '%s', Error);
16481651
E('ERR_REQUIRE_ESM',
16491652
function(filename, hasEsmSyntax, parentPath = null, packageJsonPath = null) {

0 commit comments

Comments
 (0)