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

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

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Exclude certain files from jumbo because of a Windows problem Created 3 years, 3 months 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/chromium/quic_chromium_client_session.cc ('k') | net/quic/core/congestion_control/rtt_stats.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/congestion_control/prr_sender.cc
diff --git a/net/quic/core/congestion_control/prr_sender.cc b/net/quic/core/congestion_control/prr_sender.cc
index bb8ac5c53667f97b63ca2877040607b843e169e5..9365c659d05427fa9f8559dc539c18dcf0f622f9 100644
--- a/net/quic/core/congestion_control/prr_sender.cc
+++ b/net/quic/core/congestion_control/prr_sender.cc
@@ -10,7 +10,7 @@ namespace net {
namespace {
// Constant based on TCP defaults.
-const QuicByteCount kMaxSegmentSize = kDefaultTCPMSS;
+const QuicByteCount kMaxQuicSegmentSize = kDefaultTCPMSS;
} // namespace
PrrSender::PrrSender()
@@ -43,7 +43,7 @@ QuicTime::Delta PrrSender::TimeUntilSend(
// return QuicTime::Delta::Zero();
// }
// Return QuicTime::Zero In order to ensure limited transmit always works.
- if (bytes_sent_since_loss_ == 0 || bytes_in_flight < kMaxSegmentSize) {
+ if (bytes_sent_since_loss_ == 0 || bytes_in_flight < kMaxQuicSegmentSize) {
return QuicTime::Delta::Zero();
}
if (congestion_window > bytes_in_flight) {
@@ -51,7 +51,7 @@ QuicTime::Delta PrrSender::TimeUntilSend(
// of sending the entire available window. This prevents burst retransmits
// when more packets are lost than the CWND reduction.
// limit = MAX(prr_delivered - prr_out, DeliveredData) + MSS
- if (bytes_delivered_since_loss_ + ack_count_since_loss_ * kMaxSegmentSize <=
+ if (bytes_delivered_since_loss_ + ack_count_since_loss_ * kMaxQuicSegmentSize <=
bytes_sent_since_loss_) {
return QuicTime::Delta::Infinite();
}
« no previous file with comments | « net/quic/chromium/quic_chromium_client_session.cc ('k') | net/quic/core/congestion_control/rtt_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698