| Index: net/quic/quic_connection.cc
|
| diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc
|
| index 3c08ef265fc18abe2943160d43d216eafc57f819..523ce6ecef8b184822955d4de1a8177f8cb66316 100644
|
| --- a/net/quic/quic_connection.cc
|
| +++ b/net/quic/quic_connection.cc
|
| @@ -1157,7 +1157,8 @@ void QuicConnection::OnCanWrite() {
|
|
|
| // After the visitor writes, it may have caused the socket to become write
|
| // blocked or the congestion manager to prohibit sending, so check again.
|
| - if (visitor_->HasPendingWrites() && !resume_writes_alarm_->IsSet() &&
|
| + if (visitor_->WillingAndAbleToWrite() &&
|
| + !resume_writes_alarm_->IsSet() &&
|
| CanWrite(NOT_RETRANSMISSION, HAS_RETRANSMITTABLE_DATA)) {
|
| // We're not write blocked, but some stream didn't write out all of its
|
| // bytes. Register for 'immediate' resumption so we'll keep writing after
|
|
|