Index: net/quic/quic_framer.cc |
diff --git a/net/quic/quic_framer.cc b/net/quic/quic_framer.cc |
index 6557f608a8293e8d282bc56267a6e371a6b4a57d..cb32e3d5021b2bc7190c2b9fac714d4fe29cd35e 100644 |
--- a/net/quic/quic_framer.cc |
+++ b/net/quic/quic_framer.cc |
@@ -479,6 +479,10 @@ QuicEncryptedPacket* QuicFramer::BuildPublicResetPacket( |
uint8_t flags = static_cast<uint8_t>(PACKET_PUBLIC_FLAGS_RST | |
PACKET_PUBLIC_FLAGS_8BYTE_CONNECTION_ID); |
+ if (FLAGS_quic_use_old_public_reset_packets) { |
+ // TODO(rch): Remove this QUIC_VERSION_32 is retired. |
+ flags |= static_cast<uint8_t>(PACKET_PUBLIC_FLAGS_8BYTE_CONNECTION_ID_OLD); |
+ } |
if (!writer.WriteUInt8(flags)) { |
return nullptr; |
} |