Skip to content

Commit 75073c5

Browse files
jasnelltargos
authored andcommitted
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 <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
1 parent c988e7e commit 75073c5

12 files changed

+3187
-373
lines changed

.nycrc

Lines changed: 1 addition & 1 deletion
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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3622,6 +3622,42 @@ removed: v10.0.0
36223622

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

3625+
<a id="ERR_QUIC_CONNECTION_FAILED"></a>
3626+
3627+
### `ERR_QUIC_CONNECTION_FAILED`
3628+
3629+
<!-- YAML
3630+
added: REPLACEME
3631+
-->
3632+
3633+
> Stability: 1 - Experimental
3634+
3635+
Establishing a QUIC connection failed.
3636+
3637+
<a id="ERR_QUIC_ENDPOINT_CLOSED"></a>
3638+
3639+
### `ERR_QUIC_ENDPOINT_CLOSED`
3640+
3641+
<!-- YAML
3642+
added: REPLACEME
3643+
-->
3644+
3645+
> Stability: 1 - Experimental
3646+
3647+
A QUIC Endpoint closed with an error.
3648+
3649+
<a id="ERR_QUIC_OPEN_STREAM_FAILED"></a>
3650+
3651+
### `ERR_QUIC_OPEN_STREAM_FAILED`
3652+
3653+
<!-- YAML
3654+
added: REPLACEME
3655+
-->
3656+
3657+
> Stability: 1 - Experimental
3658+
3659+
Opening a QUIC stream failed.
3660+
36253661
<a id="ERR_SOCKET_CANNOT_SEND"></a>
36263662

36273663
### `ERR_SOCKET_CANNOT_SEND`

lib/internal/errors.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,6 +1648,9 @@ E('ERR_PARSE_ARGS_UNKNOWN_OPTION', (option, allowPositionals) => {
16481648
E('ERR_PERFORMANCE_INVALID_TIMESTAMP',
16491649
'%d is not a valid timestamp', TypeError);
16501650
E('ERR_PERFORMANCE_MEASURE_INVALID_OPTIONS', '%s', TypeError);
1651+
E('ERR_QUIC_CONNECTION_FAILED', 'QUIC connection failed', Error);
1652+
E('ERR_QUIC_ENDPOINT_CLOSED', 'QUIC endpoint closed: %s (%d)', Error);
1653+
E('ERR_QUIC_OPEN_STREAM_FAILED', 'Failed to open QUIC stream', Error);
16511654
E('ERR_REQUIRE_CYCLE_MODULE', '%s', Error);
16521655
E('ERR_REQUIRE_ESM',
16531656
function(filename, hasEsmSyntax, parentPath = null, packageJsonPath = null) {

0 commit comments

Comments
 (0)