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

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

Issue 2227553003: Use the CHLO packet size, not message size when determining how large a REJ can be. Protected by --… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@129101660
Patch Set: Created 4 years, 4 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/test_tools/quic_connection_peer.cc ('k') | net/tools/quic/stateless_rejector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_dispatcher.cc
diff --git a/net/tools/quic/quic_dispatcher.cc b/net/tools/quic/quic_dispatcher.cc
index 6100b5909f8a377753f7fd0e31950ed3b9a1c9fb..d1c38bd63bbd7539e09099eaececce8b5df823f9 100644
--- a/net/tools/quic/quic_dispatcher.cc
+++ b/net/tools/quic/quic_dispatcher.cc
@@ -662,11 +662,11 @@ QuicDispatcher::QuicPacketFate QuicDispatcher::MaybeRejectStatelessly(
return kFateProcess;
}
- StatelessRejector rejector(header.public_header.versions.front(),
- GetSupportedVersions(), crypto_config_,
- &compressed_certs_cache_, helper()->GetClock(),
- helper()->GetRandomGenerator(),
- current_client_address_, current_server_address_);
+ StatelessRejector rejector(
+ header.public_header.versions.front(), GetSupportedVersions(),
+ crypto_config_, &compressed_certs_cache_, helper()->GetClock(),
+ helper()->GetRandomGenerator(), current_packet_->length(),
+ current_client_address_, current_server_address_);
ChloValidator validator(session_helper_.get(), current_server_address_,
&rejector);
if (!ChloExtractor::Extract(*current_packet_, GetSupportedVersions(),
« no previous file with comments | « net/quic/test_tools/quic_connection_peer.cc ('k') | net/tools/quic/stateless_rejector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698