gfe-relnote: In QUIC, stop setting and restoring framer's version in QuicDispatcher::StatelesslyTerminateConnection as terminator now have its own framer. Not protected as this is no-op change.
PiperOrigin-RevId: 247436072
Change-Id: Ic9b70b2b0b369536e8c9eb0a3aadf421fa5f7e12
diff --git a/quic/core/quic_dispatcher.cc b/quic/core/quic_dispatcher.cc
index 46878d3..a9c6c4a 100644
--- a/quic/core/quic_dispatcher.cc
+++ b/quic/core/quic_dispatcher.cc
@@ -803,10 +803,6 @@
<< " based on an ietf-long packet, which has a supported version:"
<< version << ", error_code:" << error_code
<< ", error_details:" << error_details;
- // Set framer_ to the packet's version such that the connection close can be
- // processed by the client.
- ParsedQuicVersion original_version = framer_.version();
- framer_.set_version(version);
StatelessConnectionTerminator terminator(
connection_id, version, helper_.get(), time_wait_list_manager_.get());
@@ -817,9 +813,6 @@
}
terminator.CloseConnection(error_code, error_details,
format != GOOGLE_QUIC_PACKET);
-
- // Restore framer_ to the original version, as if nothing changed in it.
- framer_.set_version(original_version);
return;
}