| 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();
|
| }
|
|
|