Skip to content

Commit

Permalink
Add QUIC APPLICATION_ERROR error code
Browse files Browse the repository at this point in the history
  • Loading branch information
maskit committed Jul 14, 2020
1 parent 0457e74 commit 3a5b3c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions iocore/net/quic/QUICDebugNames.cc
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ QUICDebugNames::error_code(uint16_t code)
return "PROTOCOL_VIOLATION";
case static_cast<uint16_t>(QUICTransErrorCode::INVALID_TOKEN):
return "INVALID_TOKEN";
case static_cast<uint16_t>(QUICTransErrorCode::APPLICATION_ERROR):
return "APPLICATION_ERROR";
case static_cast<uint16_t>(QUICTransErrorCode::CRYPTO_BUFFER_EXCEEDED):
return "CRYPTO_BUFFER_EXCEEDED";
default:
Expand Down
5 changes: 3 additions & 2 deletions iocore/net/quic/QUICTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,9 @@ enum class QUICTransErrorCode : uint64_t {
CONNECTION_ID_LIMIT_ERROR,
PROTOCOL_VIOLATION,
INVALID_TOKEN,
CRYPTO_BUFFER_EXCEEDED = 0x0D,
CRYPTO_ERROR = 0x0100, // 0x100 - 0x1FF
APPLICATION_ERROR,
CRYPTO_BUFFER_EXCEEDED,
CRYPTO_ERROR = 0x0100, // 0x100 - 0x1FF
};

// Application Protocol Error Codes defined in application
Expand Down

0 comments on commit 3a5b3c7

Please sign in to comment.