Skip to content

Commit

Permalink
src: implement native quic api
Browse files Browse the repository at this point in the history
  • Loading branch information
jasnell committed Oct 16, 2022
1 parent 80e3d21 commit 2e1802f
Show file tree
Hide file tree
Showing 28 changed files with 18,606 additions and 73 deletions.
420 changes: 420 additions & 0 deletions doc/api/errors.md

Large diffs are not rendered by default.

44 changes: 44 additions & 0 deletions lib/internal/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -1524,6 +1524,50 @@ E('ERR_PARSE_ARGS_UNKNOWN_OPTION', (option, allowPositionals) => {
E('ERR_PERFORMANCE_INVALID_TIMESTAMP',
'%d is not a valid timestamp', TypeError);
E('ERR_PERFORMANCE_MEASURE_INVALID_OPTIONS', '%s', TypeError);

E('ERR_QUIC_AEAD_LIMIT_REACHED', 'QUIC AEAD limit reached%s', Error);
E('ERR_QUIC_APPLICATION_ERROR', 'QUIC application error%s', Error);
E('ERR_QUIC_CONNECTION_ID_LIMIT_ERROR', 'QUIC connection ID limit error%s', Error);
E('ERR_QUIC_CONNECTION_REFUSED', 'QUIC connection refused%s', Error);
E('ERR_QUIC_CRYPTO_BUFFER_EXCEEDED', 'QUIC crypto buffer exceeded error%s', Error);
E('ERR_QUIC_CRYPTO_ERROR', 'QUIC crypto error%s', Error);
E('ERR_QUIC_ENDPOINT_FAILURE', 'QUIC endpoint failure [%d]: %s', Error);
E('ERR_QUIC_FINAL_SIZE_ERROR', 'QUIC final size error%s', Error);
E('ERR_QUIC_FLOW_CONTROL_ERROR', 'QUIC flow control error%s', Error);
E('ERR_QUIC_FRAME_ENCODING_ERROR', 'QUIC frame encoding error%s', Error);
E('ERR_QUIC_H3_CLOSED_CRITICAL_STREAM', 'HTTP/3 closed critical stream%s', Error);
E('ERR_QUIC_H3_CONNECT_ERROR', 'HTTP/3 connect error%s', Error);
E('ERR_QUIC_H3_EXCESSIVE_LOAD', 'HTTP/3 excessive load%s', Error);
E('ERR_QUIC_H3_FRAME_ERROR', 'HTTP/3 frame error%s', Error);
E('ERR_QUIC_H3_FRAME_UNEXPECTED', 'HTTP/3 unexpected frame%s', Error);
E('ERR_QUIC_H3_GENERAL_PROTOCOL_ERROR', 'HTTP/3 protocol error%s', Error);
E('ERR_QUIC_H3_ID_ERROR', 'HTTP/3 ID error%s', Error);
E('ERR_QUIC_H3_INTERNAL_ERROR', 'HTTP/3 internal error%s', Error);
E('ERR_QUIC_H3_MESSAGE_ERROR', 'HTTP/3 message error%s', Error);
E('ERR_QUIC_H3_MISSING_SETTINGS', 'HTTP/3 missing settings%s', Error);
E('ERR_QUIC_H3_REQUEST_CANCELLED', 'HTTP/3 request canceled%s', Error);
E('ERR_QUIC_H3_REQUEST_INCOMPLETE', 'HTTP/3 request incomplete%s', Error);
E('ERR_QUIC_H3_REQUEST_REJECTED', 'HTTP/3 request rejected%s', Error);
E('ERR_QUIC_H3_SETTINGS_ERROR', 'HTTP/3 settings error%s', Error);
E('ERR_QUIC_H3_STREAM_CREATION_ERROR', 'HTTP/3 stream creation error%s', Error);
E('ERR_QUIC_H3_VERSION_FALLBACK', 'HTTP/3 version fallback%s', Error);
E('ERR_QUIC_HANDSHAKE_CANCELED', 'QUIC handshake canceled', Error);
E('ERR_QUIC_IDLE_CLOSE', 'QUIC idle close%s', Error);
E('ERR_QUIC_INTERNAL_ERROR', 'QUIC internal error%s', Error);
E('ERR_QUIC_INVALID_TOKEN', 'QUIC invalid token%s', Error);
E('ERR_QUIC_KEY_UPDATE_ERROR', 'QUIC key update error%s', Error);
E('ERR_QUIC_NO_VIABLE_PATH', 'QUIC no viable path%s', Error);
E('ERR_QUIC_PROTOCOL_VIOLATION', 'QUIC protocol violation%s', Error);
E('ERR_QUIC_QPACK_DECODER_STREAM_ERROR', 'HTTP/3 qpack decoder stream error%s', Error);
E('ERR_QUIC_QPACK_DECOMPRESSION_FAILED', 'HTTP/3 qpack decompression failed%s', Error);
E('ERR_QUIC_QPACK_ENCODER_STREAM_ERROR', 'HTTP/3 qpack encoder stream error%s', Error);
E('ERR_QUIC_STREAM_LIMIT_ERROR', 'QUIC stream limit error%s', Error);
E('ERR_QUIC_STREAM_STATE_ERROR', 'QUIC stream state error%s', Error);
E('ERR_QUIC_TRANSPORT_PARAMETER_ERROR', 'QUIC transport parameter error%s', Error);
E('ERR_QUIC_UNABLE_TO_CREATE_STREAM', 'QUIC unable to create stream', Error);
E('ERR_QUIC_UNKNOWN_ERROR', 'QUIC unknown error [%s] %s', Error);
E('ERR_QUIC_VERSION_NEGOTIATION_ERROR', 'QUIC version negotiation error%s', Error);

E('ERR_REQUIRE_ESM',
function(filename, hasEsmSyntax, parentPath = null, packageJsonPath = null) {
hideInternalStackFrames(this);
Expand Down
Loading

0 comments on commit 2e1802f

Please sign in to comment.