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

Unified Diff: net/quic/crypto/quic_crypto_client_config.cc

Issue 331143006: QUIC Crypto - return the reasons for reject message. Reject reason (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Used static_cast<uint32> per avd's comments Created 6 years, 6 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
Index: net/quic/crypto/quic_crypto_client_config.cc
diff --git a/net/quic/crypto/quic_crypto_client_config.cc b/net/quic/crypto/quic_crypto_client_config.cc
index 8dc6a55445727ba66938f43f6306bb4dd4234ad2..9d5e704e1df9cc00bafcf6ca983d93aa60590768 100644
--- a/net/quic/crypto/quic_crypto_client_config.cc
+++ b/net/quic/crypto/quic_crypto_client_config.cc
@@ -587,6 +587,17 @@ QuicErrorCode QuicCryptoClientConfig::ProcessRejection(
}
}
+ const QuicTag* reject_reasons;
+ size_t num_reject_reasons;
+ if (rej.GetTaglist(kRREJ, &reject_reasons,
+ &num_reject_reasons) == QUIC_NO_ERROR) {
+#if defined(DEBUG)
+ for (size_t i = 0; i < num_reject_reasons; ++i) {
+ DVLOG(1) << "Reasons for rejection: " << reject_reasons[i];
+ }
+#endif
+ }
+
return QUIC_NO_ERROR;
}

Powered by Google App Engine
This is Rietveld 408576698