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

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: Rebase with TOT 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..8f4097be188977ba8cb38f30f19299ee59940503 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_reason_tags;
wtc 2014/06/19 00:13:24 Nit: name this variable |reject_reasons| because s
ramant (doing other things) 2014/06/19 01:57:34 Done.
+ size_t num_reject_reasons;
+ if (rej.GetTaglist(kRejectReason, &reject_reason_tags,
+ &num_reject_reasons) == QUIC_NO_ERROR) {
+#ifndef NDEBUG
wtc 2014/06/19 00:13:24 Nit: use #if defined(DEBUG) or #if !defined(ND
ramant (doing other things) 2014/06/19 01:57:34 Done.
+ for (size_t i = 0; i < num_reject_reasons; ++i) {
+ DVLOG(1) << "Reason for rejection: " << reject_reason_tags[i];
wtc 2014/06/19 00:13:24 Nit: Reason => Reasons
ramant (doing other things) 2014/06/19 01:57:34 Done.
+ }
+#endif
+ }
+
return QUIC_NO_ERROR;
}

Powered by Google App Engine
This is Rietveld 408576698