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

Unified Diff: net/quic/core/congestion_control/cubic.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
« no previous file with comments | « no previous file | net/quic/core/congestion_control/cubic.cc » ('j') | net/quic/core/quic_flags_list.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/congestion_control/cubic.h
diff --git a/net/quic/core/congestion_control/cubic.h b/net/quic/core/congestion_control/cubic.h
index 30657e57c9d6b58d4e9943d6f733dd9399adbe2c..dba6493c6351b171dce93ba92e3554fe9e1622e4 100644
--- a/net/quic/core/congestion_control/cubic.h
+++ b/net/quic/core/congestion_control/cubic.h
@@ -34,9 +34,9 @@ class NET_EXPORT_PRIVATE Cubic {
QuicPacketCount CongestionWindowAfterPacketLoss(QuicPacketCount current);
// Compute a new congestion window to use after a received ACK.
- // Returns the new congestion window in packets. The new congestion window
- // follows a cubic function that depends on the time passed since last
- // packet loss.
+ // Returns the new congestion window in packets. The new congestion
+ // window follows a cubic function that depends on the time passed
+ // since last packet loss.
QuicPacketCount CongestionWindowAfterAck(QuicPacketCount current,
QuicTime::Delta delay_min);
@@ -44,6 +44,11 @@ class NET_EXPORT_PRIVATE Cubic {
// window. Resets Cubic state during quiescence.
void OnApplicationLimited();
+ // If true, enable the fix for the convex-mode signing bug. See
+ // b/32170105 for more information about the bug.
Zhongyi Shi 2016/12/01 22:15:23 nit: you might want to remove this link here.
+ // TODO(jokulik): Remove once the fix is enabled by default.
+ void SetFixConvexMode(bool fix_convex_mode);
+
private:
static const QuicTime::Delta MaxCubicTimeInterval() {
return QuicTime::Delta::FromMilliseconds(30);
@@ -97,6 +102,10 @@ class NET_EXPORT_PRIVATE Cubic {
// Last congestion window in packets computed by cubic function.
QuicPacketCount 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(Cubic);
};
« no previous file with comments | « no previous file | net/quic/core/congestion_control/cubic.cc » ('j') | net/quic/core/quic_flags_list.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698