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

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

Issue 1433793002: Change bufferring data structure for QuicStreamSequencer. Protected by FLAGS_quic_use_stream_sequen… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@106946658
Patch Set: Created 5 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_flow_controller.cc ('k') | net/quic/quic_stream_sequencer.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 <stdint.h> 9 #include <stdint.h>
10 #include <limits> 10 #include <limits>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // Default maximum packet size used in the Linux TCP implementation. 67 // Default maximum packet size used in the Linux TCP implementation.
68 // Used in QUIC for congestion window computations in bytes. 68 // Used in QUIC for congestion window computations in bytes.
69 const QuicByteCount kDefaultTCPMSS = 1460; 69 const QuicByteCount kDefaultTCPMSS = 1460;
70 70
71 // We match SPDY's use of 32 (since we'd compete with SPDY). 71 // We match SPDY's use of 32 (since we'd compete with SPDY).
72 const QuicPacketCount kInitialCongestionWindow = 32; 72 const QuicPacketCount kInitialCongestionWindow = 32;
73 73
74 // Minimum size of initial flow control window, for both stream and session. 74 // Minimum size of initial flow control window, for both stream and session.
75 const uint32 kMinimumFlowControlSendWindow = 16 * 1024; // 16 KB 75 const uint32 kMinimumFlowControlSendWindow = 16 * 1024; // 16 KB
76 76
77 // Maximum flow control receive window limits for connection and stream.
78 const QuicByteCount kStreamReceiveWindowLimit = 16 * 1024 * 1024; // 16 MB
79 const QuicByteCount kSessionReceiveWindowLimit = 24 * 1024 * 1024; // 24 MB
80
77 // Minimum size of the CWND, in packets, when doing bandwidth resumption. 81 // Minimum size of the CWND, in packets, when doing bandwidth resumption.
78 const QuicPacketCount kMinCongestionWindowForBandwidthResumption = 10; 82 const QuicPacketCount kMinCongestionWindowForBandwidthResumption = 10;
79 83
80 // Maximum size of the CWND, in packets. 84 // Maximum size of the CWND, in packets.
81 const QuicPacketCount kMaxCongestionWindow = 200; 85 const QuicPacketCount kMaxCongestionWindow = 200;
82 86
83 // Maximum number of tracked packets. 87 // Maximum number of tracked packets.
84 const QuicPacketCount kMaxTrackedPackets = 5000; 88 const QuicPacketCount kMaxTrackedPackets = 5000;
85 89
86 // Default size of the socket receive buffer in bytes. 90 // Default size of the socket receive buffer in bytes.
(...skipping 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after
1239 : iov(iov), iov_count(iov_count), total_length(total_length) {} 1243 : iov(iov), iov_count(iov_count), total_length(total_length) {}
1240 1244
1241 const struct iovec* iov; 1245 const struct iovec* iov;
1242 const int iov_count; 1246 const int iov_count;
1243 const size_t total_length; 1247 const size_t total_length;
1244 }; 1248 };
1245 1249
1246 } // namespace net 1250 } // namespace net
1247 1251
1248 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1252 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/quic_flow_controller.cc ('k') | net/quic/quic_stream_sequencer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698