Remove the call to write padding when send probing data.
gfe-relnote: n/a (quartc only)
PiperOrigin-RevId: 246325244
Change-Id: I9b1d6660d390c144a7f71bdf0a9ef39659f43c52
diff --git a/quic/quartc/quartc_session.cc b/quic/quartc/quartc_session.cc
index 38e1c62..79bc9bf 100644
--- a/quic/quartc/quartc_session.cc
+++ b/quic/quartc/quartc_session.cc
@@ -127,9 +127,12 @@
return true;
}
+ // Set transmission type to PROBING_RETRANSMISSION such that the packets will
+ // be padded to full.
SetTransmissionType(PROBING_RETRANSMISSION);
+ // TODO(mellem): this sent PING will be retransmitted if it is lost which is
+ // not ideal. Consider to send stream data as probing data instead.
SendPing();
- WriteControlFrame(QuicFrame(QuicPaddingFrame()));
return true;
}