gfe-relnote: In QUIC, make QUIC_TOO_MANY_OUTSTANDING_SENT_PACKETS connection close detail more informative. Not protected. PiperOrigin-RevId: 251238003 Change-Id: I13c5bbcff1cf178d55ea98a3ca48f2a858e191a8
diff --git a/quic/core/quic_connection.cc b/quic/core/quic_connection.cc index 35f0752..471c0c9 100644 --- a/quic/core/quic_connection.cc +++ b/quic/core/quic_connection.cc
@@ -1742,9 +1742,12 @@ sent_packet_manager_.GetLeastUnacked() + max_tracked_packets_) { CloseConnection( QUIC_TOO_MANY_OUTSTANDING_SENT_PACKETS, - QuicStrCat("More than ", max_tracked_packets_, - " outstanding, least_unacked: ", - sent_packet_manager_.GetLeastUnacked().ToUint64()), + QuicStrCat( + "More than ", max_tracked_packets_, " outstanding, least_unacked: ", + sent_packet_manager_.GetLeastUnacked().ToUint64(), + ", packets_processed: ", stats_.packets_processed, + ", last_decrypted_packet_level: ", + QuicUtils::EncryptionLevelToString(last_decrypted_packet_level_)), ConnectionCloseBehavior::SEND_CONNECTION_CLOSE_PACKET); } }