Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: net/tools/quic/quic_time_wait_list_manager.cc

Issue 1761253002: Make QUIC version negotiation stateless. The QUIC dispatcher now detects version mismatch before cr… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@115591435
Patch Set: Update dependency Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/quic/quic_time_wait_list_manager.h ('k') | net/tools/quic/quic_time_wait_list_manager_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_time_wait_list_manager.cc
diff --git a/net/tools/quic/quic_time_wait_list_manager.cc b/net/tools/quic/quic_time_wait_list_manager.cc
index 3b50f2dd79cc923aa7039dbc5ec4f067d3a668cf..64ff05e158edfa5fe1271bb926971c552989d2a6 100644
--- a/net/tools/quic/quic_time_wait_list_manager.cc
+++ b/net/tools/quic/quic_time_wait_list_manager.cc
@@ -190,6 +190,17 @@ void QuicTimeWaitListManager::ProcessPacket(
SendPublicReset(server_address, client_address, connection_id, packet_number);
}
+void QuicTimeWaitListManager::SendVersionNegotiationPacket(
+ QuicConnectionId connection_id,
+ const QuicVersionVector& supported_versions,
+ const IPEndPoint& server_address,
+ const IPEndPoint& client_address) {
+ QueuedPacket* packet = new QueuedPacket(
+ server_address, client_address, QuicFramer::BuildVersionNegotiationPacket(
+ connection_id, supported_versions));
+ SendOrQueuePacket(packet);
+}
+
// Returns true if the number of packets received for this connection_id is a
// power of 2 to throttle the number of public reset packets we send to a
// client.
« no previous file with comments | « net/tools/quic/quic_time_wait_list_manager.h ('k') | net/tools/quic/quic_time_wait_list_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698