| Index: net/quic/quic_connection.cc
|
| diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc
|
| index 0fa6eafe0d496e3225cf3e0c3dbc16fc566d8b89..79d5131aa5ee8eca2253810e31225aebd3e0ed46 100644
|
| --- a/net/quic/quic_connection.cc
|
| +++ b/net/quic/quic_connection.cc
|
| @@ -1474,6 +1474,11 @@ bool QuicConnection::CanWrite(HasRetransmittableData retransmittable) {
|
| return false;
|
| }
|
|
|
| + // If the send alarm is set, wait for it to fire.
|
| + if (FLAGS_respect_send_alarm && send_alarm_->IsSet()) {
|
| + return false;
|
| + }
|
| +
|
| QuicTime now = clock_->Now();
|
| QuicTime::Delta delay = sent_packet_manager_.TimeUntilSend(
|
| now, retransmittable);
|
| @@ -1489,7 +1494,9 @@ bool QuicConnection::CanWrite(HasRetransmittableData retransmittable) {
|
| << "ms";
|
| return false;
|
| }
|
| - send_alarm_->Cancel();
|
| + if (!FLAGS_respect_send_alarm) {
|
| + send_alarm_->Cancel();
|
| + }
|
| return true;
|
| }
|
|
|
|
|