Add code count on connection ID change other than initial connection ID replacement on the server side.
PiperOrigin-RevId: 371763419
Change-Id: I53f07a33a29814080d66aab73f376b0ea0c65a26
diff --git a/quic/core/quic_connection.cc b/quic/core/quic_connection.cc
index 500ec61..d8efb89 100644
--- a/quic/core/quic_connection.cc
+++ b/quic/core/quic_connection.cc
@@ -1340,6 +1340,14 @@
}
}
+ if (use_connection_id_on_default_path_ &&
+ last_packet_destination_connection_id_ != ServerConnectionId() &&
+ (!original_destination_connection_id_.has_value() ||
+ last_packet_destination_connection_id_ !=
+ *original_destination_connection_id_)) {
+ QUIC_CODE_COUNT(quic_connection_id_change);
+ }
+
QUIC_DLOG_IF(INFO, current_effective_peer_migration_type_ != NO_CHANGE)
<< ENDPOINT << "Effective peer's ip:port changed from "
<< default_path_.peer_address.ToString() << " to "