Move local_delayed_ack_time from QuicSentPacketManager to QuicReceivedPacketManager, set the delayed ack time to 1ms for Initial and Handshake packet number spaces when using v99, and use peer_delayed_ack_time instead of local_delayed_ack_time when with the MAD1 connection option.
gfe-relnote: n/a (Refactor or v99 only)
PiperOrigin-RevId: 261378188
Change-Id: I4bfed0bde6fa58506250b766294221f1aaf9fc29
diff --git a/quic/core/quic_sent_packet_manager.h b/quic/core/quic_sent_packet_manager.h
index b08704d..010181c 100644
--- a/quic/core/quic_sent_packet_manager.h
+++ b/quic/core/quic_sent_packet_manager.h
@@ -355,17 +355,11 @@
return pending_timer_transmission_count_;
}
- QuicTime::Delta local_max_ack_delay() const { return local_max_ack_delay_; }
-
- void set_local_max_ack_delay(QuicTime::Delta local_max_ack_delay) {
- // The delayed ack time should never be more than one half the min RTO time.
- DCHECK_LE(local_max_ack_delay, (min_rto_timeout_ * 0.5));
- local_max_ack_delay_ = local_max_ack_delay;
- }
-
QuicTime::Delta peer_max_ack_delay() const { return peer_max_ack_delay_; }
void set_peer_max_ack_delay(QuicTime::Delta peer_max_ack_delay) {
+ // The delayed ack time should never be more than one half the min RTO time.
+ DCHECK_LE(peer_max_ack_delay, (min_rto_timeout_ * 0.5));
peer_max_ack_delay_ = peer_max_ack_delay;
}
@@ -615,10 +609,6 @@
QuicPacketNumber
largest_packets_peer_knows_is_acked_[NUM_PACKET_NUMBER_SPACES];
- // The local node's maximum ack delay time. This is the maximum amount of
- // time to wait before sending an acknowledgement.
- QuicTime::Delta local_max_ack_delay_;
-
// The maximum ACK delay time that the peer uses. Initialized to be the
// same as local_max_ack_delay_, may be changed via transport parameter
// negotiation.