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

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

Issue 693943003: Update from https://crrev.com/302630 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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_packet_generator.cc ('k') | net/quic/quic_sent_entropy_manager_test.cc » ('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 <list> 10 #include <list>
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 // Default ping timeout. 127 // Default ping timeout.
128 const int64 kPingTimeoutSecs = 15; // 15 secs. 128 const int64 kPingTimeoutSecs = 15; // 15 secs.
129 129
130 // Minimum number of RTTs between Server Config Updates (SCUP) sent to client. 130 // Minimum number of RTTs between Server Config Updates (SCUP) sent to client.
131 const int kMinIntervalBetweenServerConfigUpdatesRTTs = 10; 131 const int kMinIntervalBetweenServerConfigUpdatesRTTs = 10;
132 132
133 // Minimum time between Server Config Updates (SCUP) sent to client. 133 // Minimum time between Server Config Updates (SCUP) sent to client.
134 const int kMinIntervalBetweenServerConfigUpdatesMs = 1000; 134 const int kMinIntervalBetweenServerConfigUpdatesMs = 1000;
135 135
136 // Minimum number of packets between Server Config Updates (SCUP).
137 const int kMinPacketsBetweenServerConfigUpdates = 100;
138
136 // The number of open streams that a server will accept is set to be slightly 139 // The number of open streams that a server will accept is set to be slightly
137 // larger than the negotiated limit. Immediately closing the connection if the 140 // larger than the negotiated limit. Immediately closing the connection if the
138 // client opens slightly too many streams is not ideal: the client may have sent 141 // client opens slightly too many streams is not ideal: the client may have sent
139 // a FIN that was lost, and simultaneously opened a new stream. The number of 142 // a FIN that was lost, and simultaneously opened a new stream. The number of
140 // streams a server accepts is a fixed increment over the negotiated limit, or a 143 // streams a server accepts is a fixed increment over the negotiated limit, or a
141 // percentage increase, whichever is larger. 144 // percentage increase, whichever is larger.
142 const float kMaxStreamsMultiplier = 1.1f; 145 const float kMaxStreamsMultiplier = 1.1f;
143 const int kMaxStreamsMinimumIncrement = 10; 146 const int kMaxStreamsMinimumIncrement = 10;
144 147
145 // We define an unsigned 16-bit floating point value, inspired by IEEE floats 148 // We define an unsigned 16-bit floating point value, inspired by IEEE floats
(...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after
1087 SequenceNumberList* all_transmissions; 1090 SequenceNumberList* all_transmissions;
1088 // In flight packets have not been abandoned or lost. 1091 // In flight packets have not been abandoned or lost.
1089 bool in_flight; 1092 bool in_flight;
1090 // True if the packet can never be acked, so it can be removed. 1093 // True if the packet can never be acked, so it can be removed.
1091 bool is_unackable; 1094 bool is_unackable;
1092 }; 1095 };
1093 1096
1094 } // namespace net 1097 } // namespace net
1095 1098
1096 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1099 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/quic_packet_generator.cc ('k') | net/quic/quic_sent_entropy_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698