Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / net / quic / quic_crypto_stream.cc
index d79fa73..9005d5a 100644 (file)
@@ -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) {
@@ -59,7 +61,7 @@ void QuicCryptoStream::SendHandshakeMessage(
   // any other frames in a single packet.
   session()->connection()->Flush();
   // TODO(wtc): check the return value.
-  WriteOrBufferData(string(data.data(), data.length()), false);
+  WriteOrBufferData(string(data.data(), data.length()), false, NULL);
   session()->connection()->Flush();
 }