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

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

Issue 1988793002: Rename QUIC's kMaxCongestionWindow to kMaxResumptionCongestionWindow and move it into TcpCubicSende… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@121980704
Patch Set: Created 4 years, 7 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/congestion_control/tcp_cubic_sender_packets_test.cc ('k') | no next file » | 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 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // Minimum size of initial flow control window, for both stream and session. 71 // Minimum size of initial flow control window, for both stream and session.
72 const uint32_t kMinimumFlowControlSendWindow = 16 * 1024; // 16 KB 72 const uint32_t kMinimumFlowControlSendWindow = 16 * 1024; // 16 KB
73 73
74 // Maximum flow control receive window limits for connection and stream. 74 // Maximum flow control receive window limits for connection and stream.
75 const QuicByteCount kStreamReceiveWindowLimit = 16 * 1024 * 1024; // 16 MB 75 const QuicByteCount kStreamReceiveWindowLimit = 16 * 1024 * 1024; // 16 MB
76 const QuicByteCount kSessionReceiveWindowLimit = 24 * 1024 * 1024; // 24 MB 76 const QuicByteCount kSessionReceiveWindowLimit = 24 * 1024 * 1024; // 24 MB
77 77
78 // Minimum size of the CWND, in packets, when doing bandwidth resumption. 78 // Minimum size of the CWND, in packets, when doing bandwidth resumption.
79 const QuicPacketCount kMinCongestionWindowForBandwidthResumption = 10; 79 const QuicPacketCount kMinCongestionWindowForBandwidthResumption = 10;
80 80
81 // Maximum size of the CWND, in packets.
82 const QuicPacketCount kMaxCongestionWindow = 200;
83
84 // Maximum number of tracked packets. 81 // Maximum number of tracked packets.
85 const QuicPacketCount kMaxTrackedPackets = 5000; 82 const QuicPacketCount kMaxTrackedPackets = 5000;
86 83
87 // Default size of the socket receive buffer in bytes. 84 // Default size of the socket receive buffer in bytes.
88 const QuicByteCount kDefaultSocketReceiveBuffer = 256 * 1024; 85 const QuicByteCount kDefaultSocketReceiveBuffer = 256 * 1024;
89 // Minimum size of the socket receive buffer in bytes. 86 // Minimum size of the socket receive buffer in bytes.
90 // Smaller values are ignored. 87 // Smaller values are ignored.
91 const QuicByteCount kMinSocketReceiveBuffer = 16 * 1024; 88 const QuicByteCount kMinSocketReceiveBuffer = 16 * 1024;
92 89
93 // Fraction of the receive buffer that can be used for encrypted bytes. 90 // Fraction of the receive buffer that can be used for encrypted bytes.
(...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after
1493 : iov(iov), iov_count(iov_count), total_length(total_length) {} 1490 : iov(iov), iov_count(iov_count), total_length(total_length) {}
1494 1491
1495 const struct iovec* iov; 1492 const struct iovec* iov;
1496 const int iov_count; 1493 const int iov_count;
1497 const size_t total_length; 1494 const size_t total_length;
1498 }; 1495 };
1499 1496
1500 } // namespace net 1497 } // namespace net
1501 1498
1502 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1499 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/tcp_cubic_sender_packets_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698