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

Unified Diff: net/quic/congestion_control/tcp_cubic_sender.cc

Issue 447083002: Default socket receive buffer to 256K bytes and remove unnecessary (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Include_socket_receive_buffer_72334240
Patch Set: Created 6 years, 4 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 | « no previous file | net/quic/congestion_control/tcp_cubic_sender_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/congestion_control/tcp_cubic_sender.cc
diff --git a/net/quic/congestion_control/tcp_cubic_sender.cc b/net/quic/congestion_control/tcp_cubic_sender.cc
index 18401b713b7d11f23925d14f36a161d6e6a4a275..d9677046678881d3f73b16c7c3c6c293ebd8396f 100644
--- a/net/quic/congestion_control/tcp_cubic_sender.cc
+++ b/net/quic/congestion_control/tcp_cubic_sender.cc
@@ -21,7 +21,6 @@ namespace {
// fast retransmission. The cwnd after a timeout is still 1.
const QuicTcpCongestionWindow kMinimumCongestionWindow = 2;
const QuicByteCount kMaxSegmentSize = kDefaultTCPMSS;
-const QuicByteCount kDefaultReceiveWindow = 64000;
const int64 kInitialCongestionWindow = 10;
const int kMaxBurstLength = 3;
}; // namespace
@@ -38,7 +37,7 @@ TcpCubicSender::TcpCubicSender(
stats_(stats),
reno_(reno),
congestion_window_count_(0),
- receive_window_(kDefaultReceiveWindow),
+ receive_window_(kDefaultSocketReceiveBuffer),
prr_out_(0),
prr_delivered_(0),
ack_count_since_loss_(0),
@@ -72,6 +71,10 @@ void TcpCubicSender::SetFromConfig(const QuicConfig& config, bool is_server) {
config.ReceivedInitialCongestionWindow());
}
}
+ if (config.HasReceivedSocketReceiveBuffer()) {
+ // Set the initial socket receive buffer size in bytes.
+ receive_window_ = config.ReceivedSocketReceiveBuffer();
+ }
}
void TcpCubicSender::OnIncomingQuicCongestionFeedbackFrame(
« no previous file with comments | « no previous file | net/quic/congestion_control/tcp_cubic_sender_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698