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

Side by Side Diff: net/quic/core/congestion_control/tcp_cubic_sender_packets.cc

Issue 2825083003: Landing Recent QUIC changes until Mon Apr 17 2017 (Closed)
Patch Set: Format Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/core/congestion_control/tcp_cubic_sender_packets.h" 5 #include "net/quic/core/congestion_control/tcp_cubic_sender_packets.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "net/quic/core/congestion_control/prr_sender.h" 9 #include "net/quic/core/congestion_control/prr_sender.h"
10 #include "net/quic/core/congestion_control/rtt_stats.h" 10 #include "net/quic/core/congestion_control/rtt_stats.h"
11 #include "net/quic/core/crypto/crypto_protocol.h" 11 #include "net/quic/core/crypto/crypto_protocol.h"
12 #include "net/quic/core/quic_flags.h"
13 #include "net/quic/platform/api/quic_bug_tracker.h" 12 #include "net/quic/platform/api/quic_bug_tracker.h"
13 #include "net/quic/platform/api/quic_flags.h"
14 #include "net/quic/platform/api/quic_logging.h" 14 #include "net/quic/platform/api/quic_logging.h"
15 15
16 namespace net { 16 namespace net {
17 17
18 namespace { 18 namespace {
19 // Constants based on TCP defaults. 19 // Constants based on TCP defaults.
20 // The minimum cwnd based on RFC 3782 (TCP NewReno) for cwnd reductions on a 20 // The minimum cwnd based on RFC 3782 (TCP NewReno) for cwnd reductions on a
21 // fast retransmission. The cwnd after a timeout is still 1. 21 // fast retransmission. The cwnd after a timeout is still 1.
22 const QuicPacketCount kDefaultMinimumCongestionWindow = 2; 22 const QuicPacketCount kDefaultMinimumCongestionWindow = 2;
23 } // namespace 23 } // namespace
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 congestion_window_ = initial_tcp_congestion_window_; 221 congestion_window_ = initial_tcp_congestion_window_;
222 slowstart_threshold_ = initial_max_tcp_congestion_window_; 222 slowstart_threshold_ = initial_max_tcp_congestion_window_;
223 max_tcp_congestion_window_ = initial_max_tcp_congestion_window_; 223 max_tcp_congestion_window_ = initial_max_tcp_congestion_window_;
224 } 224 }
225 225
226 CongestionControlType TcpCubicSenderPackets::GetCongestionControlType() const { 226 CongestionControlType TcpCubicSenderPackets::GetCongestionControlType() const {
227 return reno_ ? kReno : kCubic; 227 return reno_ ? kReno : kCubic;
228 } 228 }
229 229
230 } // namespace net 230 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/congestion_control/tcp_cubic_sender_bytes.cc ('k') | net/quic/core/crypto/crypto_server_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698