Rename quic::kMaxPacketSize to quic::kMaxOutgoingPacketSize
As part of cl/242197597, QUIC now has separate values for maximum incoming and outgoing packet sizes. This CL renames the constant to be clearer.
gfe-relnote: constant rename, no functional impact
PiperOrigin-RevId: 242708648
Change-Id: I3f440ba44b9c12394026116aaecdd2c166cc63b6
diff --git a/quic/core/quic_packet_generator.cc b/quic/core/quic_packet_generator.cc
index 831689b..6efadcf 100644
--- a/quic/core/quic_packet_generator.cc
+++ b/quic/core/quic_packet_generator.cc
@@ -137,9 +137,9 @@
}
// We determine if we can enter the fast path before executing
// the slow path loop.
- bool run_fast_path = !has_handshake && state != FIN_AND_PADDING &&
- !HasQueuedFrames() &&
- write_length - total_bytes_consumed > kMaxPacketSize;
+ bool run_fast_path =
+ !has_handshake && state != FIN_AND_PADDING && !HasQueuedFrames() &&
+ write_length - total_bytes_consumed > kMaxOutgoingPacketSize;
while (!run_fast_path && delegate_->ShouldGeneratePacket(
HAS_RETRANSMITTABLE_DATA,
@@ -177,9 +177,9 @@
// TODO(ianswett): Move to having the creator flush itself when it's full.
packet_creator_.Flush();
- run_fast_path = !has_handshake && state != FIN_AND_PADDING &&
- !HasQueuedFrames() &&
- write_length - total_bytes_consumed > kMaxPacketSize;
+ run_fast_path =
+ !has_handshake && state != FIN_AND_PADDING && !HasQueuedFrames() &&
+ write_length - total_bytes_consumed > kMaxOutgoingPacketSize;
}
if (run_fast_path) {