Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(533)

Unified Diff: net/tools/quic/quic_server.cc

Issue 333803007: Rather than passing initial_flow_control_window all the way down the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/quic/quic_server.h ('k') | net/tools/quic/quic_server_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_server.cc
diff --git a/net/tools/quic/quic_server.cc b/net/tools/quic/quic_server.cc
index 2d1a52d3f0dc010f5c60e19eb1147dbedd6a0e71..71fd578c23fb95b1efb45a7a3bddcb57c8f7e718 100644
--- a/net/tools/quic/quic_server.cc
+++ b/net/tools/quic/quic_server.cc
@@ -42,17 +42,14 @@ QuicServer::QuicServer()
overflow_supported_(false),
use_recvmmsg_(false),
crypto_config_(kSourceAddressTokenSecret, QuicRandom::GetInstance()),
- supported_versions_(QuicSupportedVersions()),
- server_initial_flow_control_receive_window_(
- kServerInitialFlowControlWindow) {
+ supported_versions_(QuicSupportedVersions()) {
// Use hardcoded crypto parameters for now.
config_.SetDefaults();
Initialize();
}
QuicServer::QuicServer(const QuicConfig& config,
- const QuicVersionVector& supported_versions,
- uint32 server_initial_flow_control_receive_window)
+ const QuicVersionVector& supported_versions)
: port_(0),
fd_(-1),
packets_dropped_(0),
@@ -60,9 +57,7 @@ QuicServer::QuicServer(const QuicConfig& config,
use_recvmmsg_(false),
config_(config),
crypto_config_(kSourceAddressTokenSecret, QuicRandom::GetInstance()),
- supported_versions_(supported_versions),
- server_initial_flow_control_receive_window_(
- server_initial_flow_control_receive_window) {
+ supported_versions_(supported_versions) {
Initialize();
}
@@ -80,6 +75,9 @@ void QuicServer::Initialize() {
crypto_config_.AddDefaultConfig(
QuicRandom::GetInstance(), &clock,
QuicCryptoServerConfig::ConfigOptions()));
+
+ // Set flow control options in the config.
+ config_.SetInitialCongestionWindowToSend(kServerInitialFlowControlWindow);
}
QuicServer::~QuicServer() {
@@ -168,8 +166,7 @@ bool QuicServer::Listen(const IPEndPoint& address) {
config_,
crypto_config_,
supported_versions_,
- &epoll_server_,
- server_initial_flow_control_receive_window_));
+ &epoll_server_));
dispatcher_->Initialize(fd_);
return true;
« no previous file with comments | « net/tools/quic/quic_server.h ('k') | net/tools/quic/quic_server_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698