Deprecate --gfe2_reloadable_flag_quic_add_process_packet_context. PiperOrigin-RevId: 491635277
diff --git a/quiche/quic/core/quic_flags_list.h b/quiche/quic/core/quic_flags_list.h index aeefafe..154ad0c 100644 --- a/quiche/quic/core/quic_flags_list.h +++ b/quiche/quic/core/quic_flags_list.h
@@ -21,8 +21,6 @@ QUIC_FLAG(quic_reloadable_flag_quic_no_write_control_frame_upon_connection_close, true) // If true, QUIC will default enable MTU discovery at server, with a target of 1450 bytes. QUIC_FLAG(quic_reloadable_flag_quic_enable_mtu_discovery_at_server, false) -// If true, QuicConnectionContext will track the decrypted payload and the offset of the current frame, for debugging. -QUIC_FLAG(quic_reloadable_flag_quic_add_process_packet_context, true) // If true, QuicCryptoServerConfig::ParseConfigProtobuf will treat an empty SCID as the same as non-existent. QUIC_FLAG(quic_restart_flag_quic_return_error_on_empty_scid, true) // If true, QuicGsoBatchWriter will support release time if it is available and the process has the permission to do so.
diff --git a/quiche/quic/core/quic_framer.cc b/quiche/quic/core/quic_framer.cc index 919deb6..75f40d2 100644 --- a/quiche/quic/core/quic_framer.cc +++ b/quiche/quic/core/quic_framer.cc
@@ -1907,8 +1907,7 @@ // Remember decrypted_payload in the current connection context until the end // of this function. - auto* connection_context = - add_process_packet_context_ ? QuicConnectionContext::Current() : nullptr; + auto* connection_context = QuicConnectionContext::Current(); if (connection_context != nullptr) { connection_context->process_packet_context.decrypted_payload = reader.FullPayload(); @@ -1916,7 +1915,6 @@ } auto clear_decrypted_payload = absl::MakeCleanup([&]() { if (connection_context != nullptr) { - QUIC_RELOADABLE_FLAG_COUNT(quic_add_process_packet_context); connection_context->process_packet_context.decrypted_payload = absl::string_view(); } @@ -3187,8 +3185,7 @@ } QUIC_DVLOG(2) << ENDPOINT << "Processing IETF packet with header " << header; - auto* connection_context = - add_process_packet_context_ ? QuicConnectionContext::Current() : nullptr; + auto* connection_context = QuicConnectionContext::Current(); while (!reader->IsDoneReading()) { if (connection_context != nullptr) { connection_context->process_packet_context.current_frame_offset =
diff --git a/quiche/quic/core/quic_framer.h b/quiche/quic/core/quic_framer.h index 484d7c1..3f1d011 100644 --- a/quiche/quic/core/quic_framer.h +++ b/quiche/quic/core/quic_framer.h
@@ -1198,9 +1198,6 @@ // Indicates whether received RETRY packets should be dropped. bool drop_incoming_retry_packets_ = false; - const bool add_process_packet_context_ = - GetQuicReloadableFlag(quic_add_process_packet_context); - // The length in bytes of the last packet number written to an IETF-framed // packet. size_t last_written_packet_number_length_;