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

Unified Diff: net/quic/quic_crypto_stream.cc

Issue 368803003: QUIC_VERSION_21: headers and crypto streams are now flow controlled at (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « no previous file | net/quic/quic_crypto_stream_test.cc » ('j') | net/quic/reliable_quic_stream.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_crypto_stream.cc
diff --git a/net/quic/quic_crypto_stream.cc b/net/quic/quic_crypto_stream.cc
index 0e447127af5cc3b5746bfdf15c3d70a36f623470..870a3cf7eaa86a1fb2d8de23da6967a3d46698e4 100644
--- a/net/quic/quic_crypto_stream.cc
+++ b/net/quic/quic_crypto_stream.cc
@@ -22,7 +22,13 @@ QuicCryptoStream::QuicCryptoStream(QuicSession* session)
encryption_established_(false),
handshake_confirmed_(false) {
crypto_framer_.set_visitor(this);
- DisableFlowControl();
+ if (version() <= QUIC_VERSION_20) {
+ // Prior to QUIC_VERSION_21 the crypto stream is not subject to any flow
+ // control.
+ DisableFlowControl();
+ }
+ // The crypto stream is exempt from connection level flow control.
+ DisableConnectionFlowControlForThisStream();
}
void QuicCryptoStream::OnError(CryptoFramer* framer) {
« no previous file with comments | « no previous file | net/quic/quic_crypto_stream_test.cc » ('j') | net/quic/reliable_quic_stream.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698