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

Unified Diff: net/quic/core/congestion_control/tcp_cubic_sender_packets.cc

Issue 2550453002: Fixed integer signing bug in cubic bytes/packet implementation (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: net/quic/core/congestion_control/tcp_cubic_sender_packets.cc
diff --git a/net/quic/core/congestion_control/tcp_cubic_sender_packets.cc b/net/quic/core/congestion_control/tcp_cubic_sender_packets.cc
index 0a5d2656394232985fa926a6782b4f3cd049db2c..2a54db6b19d444f06e0fe0369b17e3122d41ec67 100644
--- a/net/quic/core/congestion_control/tcp_cubic_sender_packets.cc
+++ b/net/quic/core/congestion_control/tcp_cubic_sender_packets.cc
@@ -46,6 +46,16 @@ TcpCubicSenderPackets::TcpCubicSenderPackets(
TcpCubicSenderPackets::~TcpCubicSenderPackets() {}
+void TcpCubicSenderPackets::SetFromConfig(const QuicConfig& config,
+ Perspective perspective) {
+ TcpCubicSenderBase::SetFromConfig(config, perspective);
+ if (FLAGS_quic_fix_cubic_convex_mode &&
+ config.HasReceivedConnectionOptions() &&
+ ContainsQuicTag(config.ReceivedConnectionOptions(), kCCVX)) {
+ cubic_.SetFixConvexMode(true);
+ }
+}
+
void TcpCubicSenderPackets::SetCongestionWindowFromBandwidthAndRtt(
QuicBandwidth bandwidth,
QuicTime::Delta rtt) {

Powered by Google App Engine
This is Rietveld 408576698