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

Side by Side Diff: net/quic/congestion_control/tcp_cubic_bytes_sender.cc

Issue 1009203003: Add a kBYTE congestion option to QUIC to negotiate the TcpCubicBytesSender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Add_support_for_MIN1_88167032
Patch Set: Created 5 years, 9 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) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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/congestion_control/tcp_cubic_bytes_sender.h" 5 #include "net/quic/congestion_control/tcp_cubic_bytes_sender.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "net/quic/congestion_control/prr_sender.h" 9 #include "net/quic/congestion_control/prr_sender.h"
10 #include "net/quic/congestion_control/rtt_stats.h" 10 #include "net/quic/congestion_control/rtt_stats.h"
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 if (!packets_retransmitted) { 339 if (!packets_retransmitted) {
340 return; 340 return;
341 } 341 }
342 cubic_.Reset(); 342 cubic_.Reset();
343 hybrid_slow_start_.Restart(); 343 hybrid_slow_start_.Restart();
344 slowstart_threshold_ = congestion_window_ / 2; 344 slowstart_threshold_ = congestion_window_ / 2;
345 congestion_window_ = min_congestion_window_; 345 congestion_window_ = min_congestion_window_;
346 } 346 }
347 347
348 CongestionControlType TcpCubicBytesSender::GetCongestionControlType() const { 348 CongestionControlType TcpCubicBytesSender::GetCongestionControlType() const {
349 return reno_ ? kReno : kCubic; 349 return reno_ ? kRenoBytes : kCubicBytes;
350 } 350 }
351 351
352 } // namespace net 352 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/congestion_control/send_algorithm_interface.cc ('k') | net/quic/crypto/crypto_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698