summaryrefslogtreecommitdiffstats
path: root/net/quic/congestion_control
diff options
context:
space:
mode:
authorrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-24 04:43:38 +0000
committerrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-24 04:43:38 +0000
commitcad532e6b8585052caf8b5d157d5227ca92ab11c (patch)
tree15bd81e168f6649ab48cf6e6eb7b453a90fa7d5a /net/quic/congestion_control
parent66178a9777be0c109f59e268f9d10ed288f7fe40 (diff)
downloadchromium_src-cad532e6b8585052caf8b5d157d5227ca92ab11c.zip
chromium_src-cad532e6b8585052caf8b5d157d5227ca92ab11c.tar.gz
chromium_src-cad532e6b8585052caf8b5d157d5227ca92ab11c.tar.bz2
Increase the QUIC UDP socket buffer to 256 packets to match the TCP receive window size.
Review URL: https://codereview.chromium.org/38233005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230643 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/quic/congestion_control')
-rw-r--r--net/quic/congestion_control/tcp_receiver.cc3
-rw-r--r--net/quic/congestion_control/tcp_receiver.h3
2 files changed, 5 insertions, 1 deletions
diff --git a/net/quic/congestion_control/tcp_receiver.cc b/net/quic/congestion_control/tcp_receiver.cc
index 465e40f..ecff130 100644
--- a/net/quic/congestion_control/tcp_receiver.cc
+++ b/net/quic/congestion_control/tcp_receiver.cc
@@ -7,8 +7,9 @@
namespace net {
+// static
// Originally 64K bytes for TCP, setting it to 256K to support higher bitrates.
-const QuicByteCount kReceiveWindowTCP = 256000;
+const QuicByteCount TcpReceiver::kReceiveWindowTCP = 256000;
TcpReceiver::TcpReceiver()
: accumulated_number_of_recoverd_lost_packets_(0),
diff --git a/net/quic/congestion_control/tcp_receiver.h b/net/quic/congestion_control/tcp_receiver.h
index 695ffbb..99cf93c 100644
--- a/net/quic/congestion_control/tcp_receiver.h
+++ b/net/quic/congestion_control/tcp_receiver.h
@@ -20,6 +20,9 @@ class NET_EXPORT_PRIVATE TcpReceiver : public ReceiveAlgorithmInterface {
public:
TcpReceiver();
+ // Size of the (currently fixed) receive window.
+ static const QuicByteCount kReceiveWindowTCP;
+
// Start implementation of SendAlgorithmInterface.
virtual bool GenerateCongestionFeedback(
QuicCongestionFeedbackFrame* feedback) OVERRIDE;