Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Side by Side Diff: net/quic/quic_protocol.h

Issue 1208933004: QUIC - disable QUIC under recent pathological connection errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move dead code out of OnHandshakeConfirmed to where it will actually work (spotted by Ryan). Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_QUIC_QUIC_PROTOCOL_H_ 5 #ifndef NET_QUIC_QUIC_PROTOCOL_H_
6 #define NET_QUIC_QUIC_PROTOCOL_H_ 6 #define NET_QUIC_QUIC_PROTOCOL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <limits> 10 #include <limits>
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 // The connection has been IP pooled into an existing connection. 535 // The connection has been IP pooled into an existing connection.
536 QUIC_CONNECTION_IP_POOLED = 62, 536 QUIC_CONNECTION_IP_POOLED = 62,
537 // The connection has too many outstanding sent packets. 537 // The connection has too many outstanding sent packets.
538 QUIC_TOO_MANY_OUTSTANDING_SENT_PACKETS = 68, 538 QUIC_TOO_MANY_OUTSTANDING_SENT_PACKETS = 68,
539 // The connection has too many outstanding received packets. 539 // The connection has too many outstanding received packets.
540 QUIC_TOO_MANY_OUTSTANDING_RECEIVED_PACKETS = 69, 540 QUIC_TOO_MANY_OUTSTANDING_RECEIVED_PACKETS = 69,
541 // The quic connection job to load server config is cancelled. 541 // The quic connection job to load server config is cancelled.
542 QUIC_CONNECTION_CANCELLED = 70, 542 QUIC_CONNECTION_CANCELLED = 70,
543 // Disabled QUIC because of high packet loss rate. 543 // Disabled QUIC because of high packet loss rate.
544 QUIC_BAD_PACKET_LOSS_RATE = 71, 544 QUIC_BAD_PACKET_LOSS_RATE = 71,
545 // Disabled QUIC because of too many PUBLIC_RESETs post handshake.
546 QUIC_PUBLIC_RESETS_POST_HANDSHAKE = 73,
547 // Disabled QUIC because of too many timeouts with streams open.
548 QUIC_TIMEOUTS_WITH_OPEN_STREAMS = 74,
Ryan Hamilton 2015/07/07 03:09:37 FYI: You'll need to merge this part of your CL to
Buck 2015/07/07 18:38:48 Acknowledged.
545 549
546 // Crypto errors. 550 // Crypto errors.
547 551
548 // Hanshake failed. 552 // Hanshake failed.
549 QUIC_HANDSHAKE_FAILED = 28, 553 QUIC_HANDSHAKE_FAILED = 28,
550 // Handshake message contained out of order tags. 554 // Handshake message contained out of order tags.
551 QUIC_CRYPTO_TAGS_OUT_OF_ORDER = 29, 555 QUIC_CRYPTO_TAGS_OUT_OF_ORDER = 29,
552 // Handshake message contained too many entries. 556 // Handshake message contained too many entries.
553 QUIC_CRYPTO_TOO_MANY_ENTRIES = 30, 557 QUIC_CRYPTO_TOO_MANY_ENTRIES = 30,
554 // Handshake message contained an invalid value length. 558 // Handshake message contained an invalid value length.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 // A handshake message arrived, but we are still validating the 598 // A handshake message arrived, but we are still validating the
595 // previous handshake message. 599 // previous handshake message.
596 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54, 600 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54,
597 // A server config update arrived before the handshake is complete. 601 // A server config update arrived before the handshake is complete.
598 QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE = 65, 602 QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE = 65,
599 // This connection involved a version negotiation which appears to have been 603 // This connection involved a version negotiation which appears to have been
600 // tampered with. 604 // tampered with.
601 QUIC_VERSION_NEGOTIATION_MISMATCH = 55, 605 QUIC_VERSION_NEGOTIATION_MISMATCH = 55,
602 606
603 // No error. Used as bound while iterating. 607 // No error. Used as bound while iterating.
604 QUIC_LAST_ERROR = 73, 608 QUIC_LAST_ERROR = 75,
605 }; 609 };
606 610
607 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { 611 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader {
608 QuicPacketPublicHeader(); 612 QuicPacketPublicHeader();
609 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); 613 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other);
610 ~QuicPacketPublicHeader(); 614 ~QuicPacketPublicHeader();
611 615
612 // Universal header. All QuicPacket headers will have a connection_id and 616 // Universal header. All QuicPacket headers will have a connection_id and
613 // public flags. 617 // public flags.
614 QuicConnectionId connection_id; 618 QuicConnectionId connection_id;
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 : iov(iov), iov_count(iov_count), total_length(total_length) {} 1093 : iov(iov), iov_count(iov_count), total_length(total_length) {}
1090 1094
1091 const struct iovec* iov; 1095 const struct iovec* iov;
1092 const int iov_count; 1096 const int iov_count;
1093 const size_t total_length; 1097 const size_t total_length;
1094 }; 1098 };
1095 1099
1096 } // namespace net 1100 } // namespace net
1097 1101
1098 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1102 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698