Add debugging logging for b/177651625.
PiperOrigin-RevId: 352816680
Change-Id: Ib285d3a137ef0569cff4497166a3dfbc72c67a88
diff --git a/quic/core/quic_connection.cc b/quic/core/quic_connection.cc
index 6071630..5090991 100644
--- a/quic/core/quic_connection.cc
+++ b/quic/core/quic_connection.cc
@@ -4875,6 +4875,13 @@
QUIC_CODE_COUNT(quic_start_peer_migration_earlier);
if (current_effective_peer_migration_type_ != NO_CHANGE &&
!IsHandshakeConfirmed()) {
+ QUIC_LOG_EVERY_N_SEC(INFO, 60)
+ << ENDPOINT << "Effective peer's ip:port changed from "
+ << effective_peer_address_.ToString() << " to "
+ << GetEffectivePeerAddressFromCurrentPacket().ToString()
+ << " before handshake confirmed, "
+ "current_effective_peer_migration_type_: "
+ << current_effective_peer_migration_type_;
// Peer migrated before handshake gets confirmed.
CloseConnection((current_effective_peer_migration_type_ == PORT_CHANGE
? QUIC_PEER_PORT_CHANGE_HANDSHAKE_UNCONFIRMED