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

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

Issue 2566403002: Landing Recent QUIC changes until 3:47 pm, Dec 10, 2016 UTC-8 (Closed)
Patch Set: git cl format net 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 | « net/quic/core/congestion_control/tcp_cubic_sender_packets.h ('k') | net/quic/core/crypto/crypto_protocol.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 aa99b9bf73c2e712e67d52d9ac3c82ecfc542952..7089a5ba642b59b75da44e4183ea220058b119d9 100644
--- a/net/quic/core/congestion_control/tcp_cubic_sender_packets.cc
+++ b/net/quic/core/congestion_control/tcp_cubic_sender_packets.cc
@@ -49,6 +49,10 @@ void TcpCubicSenderPackets::SetFromConfig(const QuicConfig& config,
ContainsQuicTag(config.ReceivedConnectionOptions(), kCCVX)) {
cubic_.SetFixConvexMode(true);
}
+ if (FLAGS_quic_fix_beta_last_max && config.HasReceivedConnectionOptions() &&
+ ContainsQuicTag(config.ReceivedConnectionOptions(), kBLMX)) {
+ cubic_.SetFixBetaLastMax(true);
+ }
}
void TcpCubicSenderPackets::SetCongestionWindowFromBandwidthAndRtt(
@@ -154,7 +158,8 @@ QuicByteCount TcpCubicSenderPackets::GetSlowStartThreshold() const {
void TcpCubicSenderPackets::MaybeIncreaseCwnd(
QuicPacketNumber acked_packet_number,
QuicByteCount /*acked_bytes*/,
- QuicByteCount prior_in_flight) {
+ QuicByteCount prior_in_flight,
+ QuicTime event_time) {
QUIC_BUG_IF(InRecovery()) << "Never increase the CWND during recovery.";
// Do not increase the congestion window unless the sender is close to using
// the current window.
@@ -189,8 +194,8 @@ void TcpCubicSenderPackets::MaybeIncreaseCwnd(
} else {
congestion_window_ =
std::min(max_tcp_congestion_window_,
- cubic_.CongestionWindowAfterAck(congestion_window_,
- rtt_stats_->min_rtt()));
+ cubic_.CongestionWindowAfterAck(
+ congestion_window_, rtt_stats_->min_rtt(), event_time));
DVLOG(1) << "Cubic; congestion window: " << congestion_window_
<< " slowstart threshold: " << slowstart_threshold_;
}
« no previous file with comments | « net/quic/core/congestion_control/tcp_cubic_sender_packets.h ('k') | net/quic/core/crypto/crypto_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698