Index: net/quic/congestion_control/tcp_cubic_sender.cc |
diff --git a/net/quic/congestion_control/tcp_cubic_sender.cc b/net/quic/congestion_control/tcp_cubic_sender.cc |
index 2a381c7aadeb22ddc05b7e5f7549fb272db0dab9..5a1a8f20ada944fee6e662877126c558f7b09c8d 100644 |
--- a/net/quic/congestion_control/tcp_cubic_sender.cc |
+++ b/net/quic/congestion_control/tcp_cubic_sender.cc |
@@ -108,6 +108,11 @@ void TcpCubicSender::SetNumEmulatedConnections(int num_connections) { |
cubic_.SetNumConnections(num_connections_); |
} |
+void TcpCubicSender::SetMaxCongestionWindow( |
+ QuicByteCount max_congestion_window) { |
+ max_tcp_congestion_window_ = max_congestion_window / kMaxPacketSize; |
+} |
+ |
float TcpCubicSender::RenoBeta() const { |
// kNConnectionBeta is the backoff factor after loss for our N-connection |
// emulation, which emulates the effective backoff of an ensemble of N |