diff options
Diffstat (limited to 'chromium/net/quic/quic_crypto_stream.cc')
-rw-r--r-- | chromium/net/quic/quic_crypto_stream.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/chromium/net/quic/quic_crypto_stream.cc b/chromium/net/quic/quic_crypto_stream.cc index d79fa735786..0e447127af5 100644 --- a/chromium/net/quic/quic_crypto_stream.cc +++ b/chromium/net/quic/quic_crypto_stream.cc @@ -10,6 +10,7 @@ #include "net/quic/crypto/crypto_handshake.h" #include "net/quic/quic_connection.h" #include "net/quic/quic_session.h" +#include "net/quic/quic_utils.h" using std::string; using base::StringPiece; @@ -21,6 +22,7 @@ QuicCryptoStream::QuicCryptoStream(QuicSession* session) encryption_established_(false), handshake_confirmed_(false) { crypto_framer_.set_visitor(this); + DisableFlowControl(); } void QuicCryptoStream::OnError(CryptoFramer* framer) { @@ -55,12 +57,8 @@ void QuicCryptoStream::SendHandshakeMessage( const CryptoHandshakeMessage& message) { session()->OnCryptoHandshakeMessageSent(message); const QuicData& data = message.GetSerialized(); - // To make reasoning about crypto frames easier, we don't combine them with - // any other frames in a single packet. - session()->connection()->Flush(); // TODO(wtc): check the return value. - WriteOrBufferData(string(data.data(), data.length()), false); - session()->connection()->Flush(); + WriteOrBufferData(string(data.data(), data.length()), false, NULL); } const QuicCryptoNegotiatedParameters& |