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) { |