gfe-relnote: Enhance the error_details of QUIC_NETWORK_IDLE_TIMEOUT and QUIC_HANDSHAKE_TIMEOUT errors. No behavior change except the error message. PiperOrigin-RevId: 292406259 Change-Id: If395760ebbf0d01dc6b66bc48c1257d920ef371c
diff --git a/quic/core/quic_connection.cc b/quic/core/quic_connection.cc index 7e9f645..9a12311 100644 --- a/quic/core/quic_connection.cc +++ b/quic/core/quic_connection.cc
@@ -3073,7 +3073,9 @@ << " idle_network_timeout: " << idle_network_timeout_.ToMicroseconds(); if (idle_duration >= idle_network_timeout_) { - const std::string error_details = "No recent network activity."; + const std::string error_details = quiche::QuicheStrCat( + "No recent network activity after ", idle_duration.ToDebuggingValue(), + ". Timeout:", idle_network_timeout_.ToDebuggingValue()); QUIC_DVLOG(1) << ENDPOINT << error_details; if ((sent_packet_manager_.GetConsecutiveTlpCount() > 0 || sent_packet_manager_.GetConsecutiveRtoCount() > 0 || @@ -3094,7 +3096,10 @@ << " handshake timeout: " << handshake_timeout_.ToMicroseconds(); if (connected_duration >= handshake_timeout_) { - const std::string error_details = "Handshake timeout expired."; + const std::string error_details = quiche::QuicheStrCat( + "Handshake timeout expired after ", + connected_duration.ToDebuggingValue(), + ". Timeout:", handshake_timeout_.ToDebuggingValue()); QUIC_DVLOG(1) << ENDPOINT << error_details; CloseConnection(QUIC_HANDSHAKE_TIMEOUT, error_details, ConnectionCloseBehavior::SEND_CONNECTION_CLOSE_PACKET);