Internal QUICHE change
PiperOrigin-RevId: 259859589
Change-Id: I33f879f5422c0fad5d3570dbb48b82bac23cefff
diff --git a/quic/core/quic_connection.cc b/quic/core/quic_connection.cc
index 22ee18a..a13c506 100644
--- a/quic/core/quic_connection.cc
+++ b/quic/core/quic_connection.cc
@@ -570,9 +570,11 @@
}
if (QuicContainsValue(packet.versions, version())) {
- const std::string error_details =
- "Server already supports client's version and should have accepted the "
- "connection.";
+ const std::string error_details = QuicStrCat(
+ "Server already supports client's version ",
+ ParsedQuicVersionToString(version()),
+ " and should have accepted the connection instead of sending {",
+ ParsedQuicVersionVectorToString(packet.versions), "}.");
QUIC_DLOG(WARNING) << error_details;
CloseConnection(QUIC_INVALID_VERSION_NEGOTIATION_PACKET, error_details,
ConnectionCloseBehavior::SILENT_CLOSE);