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

Unified Diff: net/tools/quic/quic_dispatcher.h

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/quic/quic_framer.cc ('k') | net/tools/quic/quic_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_dispatcher.h
diff --git a/net/tools/quic/quic_dispatcher.h b/net/tools/quic/quic_dispatcher.h
index 6b8f5e57c94a311f3e09045962c435952c86c54c..3a96176af3963bef1a234265bbfe64e8ea96c84c 100644
--- a/net/tools/quic/quic_dispatcher.h
+++ b/net/tools/quic/quic_dispatcher.h
@@ -203,6 +203,10 @@ class QuicDispatcher : public QuicServerSessionVisitor,
// cleaned up for bug 16950226.)
virtual QuicPacketWriter* CreatePerConnectionWriter();
+ // Returns true if a session should be created for a connection with an
+ // unknown version identified by |version_tag|.
+ virtual bool ShouldCreateSessionForUnknownVersion(QuicTag version_tag);
+
void SetLastError(QuicErrorCode error);
private:
@@ -249,6 +253,7 @@ class QuicDispatcher : public QuicServerSessionVisitor,
IPEndPoint current_client_address_;
IPEndPoint current_server_address_;
const QuicEncryptedPacket* current_packet_;
+ QuicConnectionId current_connection_id_;
QuicFramer framer_;
« no previous file with comments | « net/quic/quic_framer.cc ('k') | net/tools/quic/quic_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698