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

Unified Diff: net/quic/core/congestion_control/cubic_bytes.h

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/cubic_bytes.h
diff --git a/net/quic/core/congestion_control/cubic_bytes.h b/net/quic/core/congestion_control/cubic_bytes.h
index 73998ad270874c7a6980ab942cead0704015ce67..784ce326b957d5b3ef381fbfd8520ba953363874 100644
--- a/net/quic/core/congestion_control/cubic_bytes.h
+++ b/net/quic/core/congestion_control/cubic_bytes.h
@@ -45,6 +45,8 @@ class NET_EXPORT_PRIVATE CubicBytes {
// window. Resets Cubic state during quiescence.
void OnApplicationLimited();
+ void SetFixConvexMode(bool fix_convex_mode);
+
private:
static const QuicTime::Delta MaxCubicTimeInterval() {
return QuicTime::Delta::FromMilliseconds(30);
@@ -89,6 +91,10 @@ class NET_EXPORT_PRIVATE CubicBytes {
// Last congestion window in packets computed by cubic function.
QuicByteCount last_target_congestion_window_;
+ // Fix convex mode for cubic.
+ // TODO(jokulik): Remove once the cubic convex experiment is done.
+ bool fix_convex_mode_;
+
DISALLOW_COPY_AND_ASSIGN(CubicBytes);
};

Powered by Google App Engine
This is Rietveld 408576698