| Index: net/quic/congestion_control/pacing_sender.cc
|
| diff --git a/net/quic/congestion_control/pacing_sender.cc b/net/quic/congestion_control/pacing_sender.cc
|
| index 03e553477ced4ea1e0f08ae81e63e838d8bf3f0d..d53fccc77321c8a1c0c0a7cd883bf629df5a95a0 100644
|
| --- a/net/quic/congestion_control/pacing_sender.cc
|
| +++ b/net/quic/congestion_control/pacing_sender.cc
|
| @@ -62,13 +62,9 @@ bool PacingSender::OnPacketSent(
|
| next_packet_send_time_ = QuicTime::Zero();
|
| return in_flight;
|
| }
|
| - // The next packet should be sent as soon as the current packets has
|
| - // been transferred. We pace at twice the rate of the underlying
|
| - // sender's bandwidth estimate during slow start and 1.25x during congestion
|
| - // avoidance to ensure pacing doesn't prevent us from filling the window.
|
| - const float kPacingAggression = sender_->InSlowStart() ? 2 : 1.25;
|
| - QuicTime::Delta delay =
|
| - BandwidthEstimate().Scale(kPacingAggression).TransferTime(bytes);
|
| + // The next packet should be sent as soon as the current packets has been
|
| + // transferred.
|
| + QuicTime::Delta delay = PacingRate().TransferTime(bytes);
|
| // If the last send was delayed, and the alarm took a long time to get
|
| // invoked, allow the connection to make up for lost time.
|
| if (was_last_send_delayed_) {
|
| @@ -145,6 +141,10 @@ QuicTime::Delta PacingSender::TimeUntilSend(
|
| return QuicTime::Delta::Zero();
|
| }
|
|
|
| +QuicBandwidth PacingSender::PacingRate() const {
|
| + return sender_->PacingRate();
|
| +}
|
| +
|
| QuicBandwidth PacingSender::BandwidthEstimate() const {
|
| return sender_->BandwidthEstimate();
|
| }
|
|
|