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

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

Issue 606503004: Add a QUIC tag to connection options to allow negotiating 1 connection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Allow_number_of_connections_76297032
Patch Set: Created 6 years, 3 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/crypto/crypto_protocol.h » ('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 ccc745932789401ae15f11d774a27ed4faacd68c..0aae5fdea714c109ed5fbcf3c3aff448fa03d74d 100644
--- a/net/quic/congestion_control/tcp_cubic_sender.cc
+++ b/net/quic/congestion_control/tcp_cubic_sender.cc
@@ -79,8 +79,8 @@ void TcpCubicSender::SetFromConfig(const QuicConfig& config, bool is_server) {
}
void TcpCubicSender::SetNumEmulatedConnections(int num_connections) {
- num_connections_ = num_connections;
- cubic_.SetNumConnections(num_connections);
+ num_connections_ = max(1, num_connections);
+ cubic_.SetNumConnections(num_connections_);
}
void TcpCubicSender::OnIncomingQuicCongestionFeedbackFrame(
« no previous file with comments | « no previous file | net/quic/crypto/crypto_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698