| Index: net/tools/quic/quic_server.cc
|
| diff --git a/net/tools/quic/quic_server.cc b/net/tools/quic/quic_server.cc
|
| index fd24059d148f7940a31c2ba0c6a362ebc495d842..779f62c4565ec8f8441a2811f4adf3486a652ead 100644
|
| --- a/net/tools/quic/quic_server.cc
|
| +++ b/net/tools/quic/quic_server.cc
|
| @@ -67,6 +67,26 @@ 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);
|
| + }
|
| +
|
| epoll_server_.set_timeout_in_us(50 * 1000);
|
| // Initialize the in memory cache now.
|
| QuicInMemoryCache::GetInstance();
|
|
|