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

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

Issue 471293002: Landing Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « net/quic/quic_framer_test.cc ('k') | net/quic/quic_received_packet_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <limits> 9 #include <limits>
10 #include <map> 10 #include <map>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 const uint32 kMaxInitialWindow = 100; 63 const uint32 kMaxInitialWindow = 100;
64 64
65 // Default size of initial flow control window, for both stream and session. 65 // Default size of initial flow control window, for both stream and session.
66 const uint32 kDefaultFlowControlSendWindow = 16 * 1024; // 16 KB 66 const uint32 kDefaultFlowControlSendWindow = 16 * 1024; // 16 KB
67 67
68 // Maximum size of the congestion window, in packets, for TCP congestion control 68 // Maximum size of the congestion window, in packets, for TCP congestion control
69 // algorithms. 69 // algorithms.
70 const size_t kMaxTcpCongestionWindow = 200; 70 const size_t kMaxTcpCongestionWindow = 200;
71 71
72 // Size of the socket receive buffer in bytes. 72 // Size of the socket receive buffer in bytes.
73 const QuicByteCount kDefaultSocketReceiveBuffer = 256000; 73 const QuicByteCount kDefaultSocketReceiveBuffer = 256 * 1024;
74 74
75 // Don't allow a client to suggest an RTT longer than 15 seconds. 75 // Don't allow a client to suggest an RTT longer than 15 seconds.
76 const uint32 kMaxInitialRoundTripTimeUs = 15 * kNumMicrosPerSecond; 76 const uint32 kMaxInitialRoundTripTimeUs = 15 * kNumMicrosPerSecond;
77 77
78 // Maximum number of open streams per connection. 78 // Maximum number of open streams per connection.
79 const size_t kDefaultMaxStreamsPerConnection = 100; 79 const size_t kDefaultMaxStreamsPerConnection = 100;
80 80
81 // Number of bytes reserved for public flags in the packet header. 81 // Number of bytes reserved for public flags in the packet header.
82 const size_t kPublicFlagsSize = 1; 82 const size_t kPublicFlagsSize = 1;
83 // Number of bytes reserved for version number in the packet header. 83 // Number of bytes reserved for version number in the packet header.
(...skipping 13 matching lines...) Expand all
97 const QuicStreamId kMaxStreamIdDelta = 200; 97 const QuicStreamId kMaxStreamIdDelta = 200;
98 // Limit on the delta between header IDs. 98 // Limit on the delta between header IDs.
99 const QuicHeaderId kMaxHeaderIdDelta = 200; 99 const QuicHeaderId kMaxHeaderIdDelta = 200;
100 100
101 // Reserved ID for the crypto stream. 101 // Reserved ID for the crypto stream.
102 const QuicStreamId kCryptoStreamId = 1; 102 const QuicStreamId kCryptoStreamId = 1;
103 103
104 // Reserved ID for the headers stream. 104 // Reserved ID for the headers stream.
105 const QuicStreamId kHeadersStreamId = 3; 105 const QuicStreamId kHeadersStreamId = 3;
106 106
107 // Maximum delayed ack time, in ms.
108 const int kMaxDelayedAckTime = 25;
wtc 2014/08/15 18:54:57 Nit: it would be a good idea to add "Ms" to the co
ramant (doing other things) 2014/08/19 17:48:41 Thanks for making the above change in the internal
109
107 // This is the default network timeout a for connection till the crypto 110 // This is the default network timeout a for connection till the crypto
108 // handshake succeeds and the negotiated timeout from the handshake is received. 111 // handshake succeeds and the negotiated timeout from the handshake is received.
109 const int64 kDefaultInitialTimeoutSecs = 120; // 2 mins. 112 const int64 kDefaultInitialTimeoutSecs = 120; // 2 mins.
110 const int64 kDefaultTimeoutSecs = 60 * 10; // 10 minutes. 113 const int64 kDefaultTimeoutSecs = 60 * 10; // 10 minutes.
111 const int64 kDefaultMaxTimeForCryptoHandshakeSecs = 5; // 5 secs. 114 const int64 kDefaultMaxTimeForCryptoHandshakeSecs = 5; // 5 secs.
112 115
113 // Default ping timeout. 116 // Default ping timeout.
114 const int64 kPingTimeoutSecs = 15; // 15 secs. 117 const int64 kPingTimeoutSecs = 15; // 15 secs.
115 118
116 // We define an unsigned 16-bit floating point value, inspired by IEEE floats 119 // We define an unsigned 16-bit floating point value, inspired by IEEE floats
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
1060 // Stores the sequence numbers of all transmissions of this packet. 1063 // Stores the sequence numbers of all transmissions of this packet.
1061 // Can never be null. 1064 // Can never be null.
1062 SequenceNumberSet* all_transmissions; 1065 SequenceNumberSet* all_transmissions;
1063 // In flight packets have not been abandoned or lost. 1066 // In flight packets have not been abandoned or lost.
1064 bool in_flight; 1067 bool in_flight;
1065 }; 1068 };
1066 1069
1067 } // namespace net 1070 } // namespace net
1068 1071
1069 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1072 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/quic_framer_test.cc ('k') | net/quic/quic_received_packet_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698