gfe-relnote: Allow sending CRYPTO frames without full padding. Protected by QUIC_VERSION_99
PiperOrigin-RevId: 247997458
Change-Id: I5439247d841c3298a77f7c914e527186f83e3f72
diff --git a/quic/core/quic_packet_creator.cc b/quic/core/quic_packet_creator.cc
index 8199307..dddc8e7 100644
--- a/quic/core/quic_packet_creator.cc
+++ b/quic/core/quic_packet_creator.cc
@@ -161,6 +161,7 @@
bool QuicPacketCreator::ConsumeCryptoData(EncryptionLevel level,
size_t write_length,
QuicStreamOffset offset,
+ bool needs_full_padding,
TransmissionType transmission_type,
QuicFrame* frame) {
if (!CreateCryptoFrame(level, write_length, offset, frame)) {
@@ -172,7 +173,9 @@
//
// TODO(nharper): Check what the IETF drafts say about padding out initial
// messages and change this as appropriate.
- needs_full_padding_ = true;
+ if (needs_full_padding) {
+ needs_full_padding_ = true;
+ }
return AddFrame(*frame, /*save_retransmittable_frames*/ true,
transmission_type);
}