Index: net/quic/quic_server.cc |
diff --git a/net/quic/quic_server.cc b/net/quic/quic_server.cc |
index 7b0f45400ec85a67c681577894892805556e01d1..e8262a8f924c21d102746bca5b4bb09a9307c60f 100644 |
--- a/net/quic/quic_server.cc |
+++ b/net/quic/quic_server.cc |
@@ -47,6 +47,29 @@ QuicServer::QuicServer(const QuicConfig& config, |
} |
void QuicServer::Initialize() { |
+#if MMSG_MORE |
+ use_recvmmsg_ = true; |
+#endif |
+ |
+ // If an initial flow control window has not explicitly been set, then use a |
+ // sensible value for a server: 1 MB for session, 64 KB for each stream. |
+ const uint32 kInitialSessionFlowControlWindow = 1 * 1024 * 1024; // 1 MB |
+ const uint32 kInitialStreamFlowControlWindow = 64 * 1024; // 64 KB |
+ if (config_.GetInitialFlowControlWindowToSend() == |
+ kMinimumFlowControlSendWindow) { |
+ config_.SetInitialFlowControlWindowToSend(kInitialSessionFlowControlWindow); |
+ } |
+ if (config_.GetInitialStreamFlowControlWindowToSend() == |
+ kMinimumFlowControlSendWindow) { |
+ config_.SetInitialStreamFlowControlWindowToSend( |
+ kInitialStreamFlowControlWindow); |
+ } |
+ if (config_.GetInitialSessionFlowControlWindowToSend() == |
+ kMinimumFlowControlSendWindow) { |
+ config_.SetInitialSessionFlowControlWindowToSend( |
+ kInitialSessionFlowControlWindow); |
+ } |
+ |
// Initialize the in memory cache now. |
QuicInMemoryCache::GetInstance(); |