Index: net/quic/quic_stream_factory.cc |
diff --git a/net/quic/quic_stream_factory.cc b/net/quic/quic_stream_factory.cc |
index 39be0ebb9580cfcdcb071a3396d5cb3dbcecd253..36f11c3574bfc499eea880c671978ba7e5e44b40 100644 |
--- a/net/quic/quic_stream_factory.cc |
+++ b/net/quic/quic_stream_factory.cc |
@@ -70,6 +70,8 @@ const int32 kInitialReceiveWindowSize = 10 * 1024 * 1024; // 10MB |
const int32 kServerSecureInitialCongestionWindow = 32; |
// Be conservative, and just use double a typical TCP ICWND for HTTP. |
const int32 kServerInecureInitialCongestionWindow = 20; |
+// Set the maximum number of undecryptable packets the connection will store. |
+const int32 kMaxUndecryptablePackets = 100; |
const char kDummyHostname[] = "quic.global.props"; |
const uint16 kDummyPort = 0; |
@@ -902,6 +904,7 @@ int QuicStreamFactory::CreateSession( |
config.SetInitialCongestionWindowToSend( |
server_id.is_https() ? kServerSecureInitialCongestionWindow |
: kServerInecureInitialCongestionWindow); |
+ config.set_max_undecryptable_packets(kMaxUndecryptablePackets); |
config.SetInitialFlowControlWindowToSend(kInitialReceiveWindowSize); |
config.SetInitialStreamFlowControlWindowToSend(kInitialReceiveWindowSize); |
config.SetInitialSessionFlowControlWindowToSend(kInitialReceiveWindowSize); |