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

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

Issue 2430973004: Landing Recent QUIC changes until 10:38 AM, Oct 17, 2016 UTC-4 (Closed)
Patch Set: Improving flagsaver logging Created 4 years, 2 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_spdy_client_stream_test.cc ('k') | net/tools/quic/test_tools/quic_test_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/stateless_rejector.cc
diff --git a/net/tools/quic/stateless_rejector.cc b/net/tools/quic/stateless_rejector.cc
index 6cf95304d90aa96d4d14cb383a8d7a352fd85b4a..ab69fc9f94be2c3351dfee6064f65b4a90e04f45 100644
--- a/net/tools/quic/stateless_rejector.cc
+++ b/net/tools/quic/stateless_rejector.cc
@@ -81,13 +81,9 @@ void StatelessRejector::OnChlo(QuicVersion version,
void StatelessRejector::Process(std::unique_ptr<StatelessRejector> rejector,
std::unique_ptr<ProcessDoneCallback> done_cb) {
- // If we were able to make a decision about this CHLO based purely on the
- // information available in OnChlo, just invoke the done callback immediately.
- if (rejector->state() != UNKNOWN) {
- done_cb->Run(std::move(rejector));
- return;
- }
-
+ QUIC_BUG_IF(rejector->state() != UNKNOWN) << "StatelessRejector::Process "
+ "called for a rejector which "
+ "has already made a decision";
StatelessRejector* rejector_ptr = rejector.get();
rejector_ptr->crypto_config_->ValidateClientHello(
rejector_ptr->chlo_, rejector_ptr->client_address_.address(),
« no previous file with comments | « net/tools/quic/quic_spdy_client_stream_test.cc ('k') | net/tools/quic/test_tools/quic_test_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698