Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // This file intentionally does not have header guards) | |
| 6 // inside a macro to generate enum. | |
| 7 | |
| 8 // This file contains the list of QUIC errors. | |
| 9 | |
| 10 QUIC_ERROR(NO_ERROR) | |
| 11 | |
| 12 // Connection has reached an invalid state. | |
| 13 QUIC_ERROR(INTERNAL_ERROR) | |
| 14 // There were data frames after the a fin or reset. | |
|
eroman
2013/06/17 23:18:19
"the a fin": remove "a"
Ryan Hamilton
2013/06/18 19:23:57
Done.
| |
| 15 QUIC_ERROR(STREAM_DATA_AFTER_TERMINATION) | |
| 16 // Control frame is malformed. | |
| 17 QUIC_ERROR(INVALID_PACKET_HEADER) | |
| 18 // Frame data is malformed. | |
| 19 QUIC_ERROR(INVALID_FRAME_DATA) | |
| 20 // FEC data is malformed. | |
| 21 QUIC_ERROR(INVALID_FEC_DATA) | |
| 22 // Stream rst data is malformed | |
| 23 QUIC_ERROR(INVALID_RST_STREAM_DATA) | |
| 24 // Connection close data is malformed. | |
| 25 QUIC_ERROR(INVALID_CONNECTION_CLOSE_DATA) | |
| 26 // GoAway data is malformed. | |
| 27 QUIC_ERROR(INVALID_GOAWAY_DATA) | |
| 28 // Ack data is malformed. | |
| 29 QUIC_ERROR(INVALID_ACK_DATA) | |
| 30 // Version negotiation packet is malformed. | |
| 31 QUIC_ERROR(INVALID_VERSION_NEGOTIATION_PACKET) | |
| 32 // Public RST packet is malformed. | |
| 33 QUIC_ERROR(INVALID_PUBLIC_RST_PACKET) | |
| 34 // There was an error decrypting. | |
| 35 QUIC_ERROR(DECRYPTION_FAILURE) | |
| 36 // There was an error encrypting. | |
| 37 QUIC_ERROR(ENCRYPTION_FAILURE) | |
| 38 // The packet exceeded kMaxPacketSize. | |
| 39 QUIC_ERROR(PACKET_TOO_LARGE) | |
| 40 // Data was sent for a stream which did not exist. | |
| 41 QUIC_ERROR(PACKET_FOR_NONEXISTENT_STREAM) | |
| 42 // The peer is going away.May be a client or server. | |
|
eroman
2013/06/17 23:18:19
space after period
Ryan Hamilton
2013/06/18 19:23:57
Done.
| |
| 43 QUIC_ERROR(PEER_GOING_AWAY) | |
| 44 // A stream ID was invalid. | |
| 45 QUIC_ERROR(INVALID_STREAM_ID) | |
| 46 // Too many streams already open. | |
| 47 QUIC_ERROR(TOO_MANY_OPEN_STREAMS) | |
| 48 // Received public reset for this connection. | |
| 49 QUIC_ERROR(PUBLIC_RESET) | |
| 50 // Invalid protocol version. | |
| 51 QUIC_ERROR(INVALID_VERSION) | |
| 52 // Stream reset before headers decompressed. | |
| 53 QUIC_ERROR(STREAM_RST_BEFORE_HEADERS_DECOMPRESSED) | |
| 54 // The Header ID for a stream was too far from the previous. | |
| 55 QUIC_ERROR(INVALID_HEADER_ID) | |
| 56 // Negotiable parameter received during handshake had invalid value. | |
| 57 QUIC_ERROR(INVALID_NEGOTIATED_VALUE) | |
| 58 // There was an error decompressing data. | |
| 59 QUIC_ERROR(DECOMPRESSION_FAILURE) | |
| 60 // We hit our prenegotiated (or default) timeout | |
| 61 QUIC_ERROR(CONNECTION_TIMED_OUT) | |
| 62 // There was an error encountered migrating addresses | |
| 63 QUIC_ERROR(ERROR_MIGRATING_ADDRESS) | |
| 64 // There was an error while writing the packet. | |
| 65 QUIC_ERROR(PACKET_WRITE_ERROR) | |
| 66 | |
| 67 | |
| 68 // Crypto errors. | |
| 69 | |
| 70 // Hanshake failed. | |
|
eroman
2013/06/17 23:18:19
Hanshake: (noun) when you shake hands with Han Sol
Ryan Hamilton
2013/06/18 19:23:57
BWAHAHAHA! Well played, sir!
Done.
| |
| 71 QUIC_ERROR(HANDSHAKE_FAILED) | |
| 72 // Handshake message contained out of order tags. | |
| 73 QUIC_ERROR(CRYPTO_TAGS_OUT_OF_ORDER) | |
| 74 // Handshake message contained too many entries. | |
| 75 QUIC_ERROR(CRYPTO_TOO_MANY_ENTRIES) | |
| 76 // Handshake message contained an invalid value length. | |
| 77 QUIC_ERROR(CRYPTO_INVALID_VALUE_LENGTH) | |
| 78 // A crypto message was received after the handshake was complete. | |
| 79 QUIC_ERROR(CRYPTO_MESSAGE_AFTER_HANDSHAKE_COMPLETE) | |
| 80 // A crypto message was received with an illegal message tag. | |
| 81 QUIC_ERROR(INVALID_CRYPTO_MESSAGE_TYPE) | |
| 82 // A crypto message was received with an illegal parameter. | |
| 83 QUIC_ERROR(INVALID_CRYPTO_MESSAGE_PARAMETER) | |
| 84 // A crypto message was received with a mandatory parameter missing. | |
| 85 QUIC_ERROR(CRYPTO_MESSAGE_PARAMETER_NOT_FOUND) | |
| 86 // A crypto message was received with a parameter that has no overlap | |
| 87 // with the local parameter. | |
| 88 QUIC_ERROR(CRYPTO_MESSAGE_PARAMETER_NO_OVERLAP) | |
| 89 // A crypto message was received that contained a parameter with too few | |
| 90 // values. | |
| 91 QUIC_ERROR(CRYPTO_MESSAGE_INDEX_NOT_FOUND) | |
| 92 // An internal error occured in crypto processing. | |
| 93 QUIC_ERROR(CRYPTO_INTERNAL_ERROR) | |
| 94 // A crypto handshake message specified an unsupported version. | |
| 95 QUIC_ERROR(CRYPTO_VERSION_NOT_SUPPORTED) | |
| 96 // There was no intersection between the crypto primitives supported by the | |
| 97 // peer and ourselves. | |
| 98 QUIC_ERROR(CRYPTO_NO_SUPPORT) | |
| 99 // The server rejected our client hello messages too many times. | |
| 100 QUIC_ERROR(CRYPTO_TOO_MANY_REJECTS) | |
| 101 // The client rejected the server's certificate chain or signature. | |
| 102 QUIC_ERROR(PROOF_INVALID) | |
| 103 // A crypto message was received with a duplicate tag. | |
| 104 QUIC_ERROR(CRYPTO_DUPLICATE_TAG) | |
| 105 // A crypto message was received with the wrong encryption level (i.e. it | |
| 106 // should have been encrypted but was not.) | |
| 107 QUIC_ERROR(CRYPTO_ENCRYPTION_LEVEL_INCORRECT) | |
| 108 // The server config for a server has expired. | |
| 109 QUIC_ERROR(CRYPTO_SERVER_CONFIG_EXPIRED) | |
| 110 | |
| 111 // No error. Used as bound while iterating. | |
| 112 QUIC_ERROR(LAST_ERROR) | |
|
eroman
2013/06/17 23:18:19
note: this will be exposed in the log file and jav
Ryan Hamilton
2013/06/18 19:23:57
Good point. Moved to the enum declaration.
| |
| OLD | NEW |