Remove ack bundling mode.
gfe-relnote: Deprecate gfe2_reloadable_flag_quic_deprecate_ack_bundling_mode.
PiperOrigin-RevId: 253856112
Change-Id: Iaa62b97be5904743c56c5b48b230446a9c4bd870
diff --git a/quic/core/quic_session.cc b/quic/core/quic_session.cc
index efa3144..754a512 100644
--- a/quic/core/quic_session.cc
+++ b/quic/core/quic_session.cc
@@ -611,8 +611,7 @@
return;
}
- QuicConnection::ScopedPacketFlusher flusher(
- connection_, QuicConnection::SEND_ACK_IF_QUEUED);
+ QuicConnection::ScopedPacketFlusher flusher(connection_);
if (control_frame_manager_.WillingToWrite()) {
control_frame_manager_.OnCanWrite();
}
@@ -754,8 +753,7 @@
// QUIC STOP_SENDING frame. Both sre sent to emulate
// the two-way close that Google QUIC's RST_STREAM does.
if (VersionHasIetfQuicFrames(connection_->transport_version())) {
- QuicConnection::ScopedPacketFlusher flusher(
- connection(), QuicConnection::SEND_ACK_IF_QUEUED);
+ QuicConnection::ScopedPacketFlusher flusher(connection());
control_frame_manager_.WriteOrBufferRstStream(id, error, bytes_written);
control_frame_manager_.WriteOrBufferStopSending(error, id);
} else {
@@ -1700,8 +1698,7 @@
void QuicSession::RetransmitFrames(const QuicFrames& frames,
TransmissionType type) {
- QuicConnection::ScopedPacketFlusher retransmission_flusher(
- connection_, QuicConnection::NO_ACK);
+ QuicConnection::ScopedPacketFlusher retransmission_flusher(connection_);
SetTransmissionType(type);
for (const QuicFrame& frame : frames) {
if (frame.type == MESSAGE_FRAME) {
@@ -1802,8 +1799,7 @@
}
bool QuicSession::RetransmitLostData() {
- QuicConnection::ScopedPacketFlusher retransmission_flusher(
- connection_, QuicConnection::SEND_ACK_IF_QUEUED);
+ QuicConnection::ScopedPacketFlusher retransmission_flusher(connection_);
// Retransmit crypto data first.
bool uses_crypto_frames =
QuicVersionUsesCryptoFrames(connection_->transport_version());