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

Unified Diff: net/quic/quic_sent_packet_manager.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 | « net/quic/crypto/crypto_protocol.h ('k') | net/quic/quic_sent_packet_manager_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_sent_packet_manager.cc
diff --git a/net/quic/quic_sent_packet_manager.cc b/net/quic/quic_sent_packet_manager.cc
index b1e04a9723db787219d95ad91d84f5fbd4fac99e..4c5307562d3d833847802f061ec295b4675749ff 100644
--- a/net/quic/quic_sent_packet_manager.cc
+++ b/net/quic/quic_sent_packet_manager.cc
@@ -126,6 +126,15 @@ void QuicSentPacketManager::SetFromConfig(const QuicConfig& config) {
ContainsQuicTag(config.SendConnectionOptions(), kPACE)) {
EnablePacing();
}
+ if (is_server_) {
+ if (config.HasReceivedConnectionOptions() &&
+ ContainsQuicTag(config.ReceivedConnectionOptions(), k1CON)) {
+ send_algorithm_->SetNumEmulatedConnections(1);
+ }
+ } else if (config.HasSendConnectionOptions() &&
+ ContainsQuicTag(config.SendConnectionOptions(), k1CON)) {
+ send_algorithm_->SetNumEmulatedConnections(1);
+ }
// TODO(ianswett): Remove the "HasReceivedLossDetection" branch once
// the ConnectionOptions code is live everywhere.
if (config.HasReceivedConnectionOptions() &&
« no previous file with comments | « net/quic/crypto/crypto_protocol.h ('k') | net/quic/quic_sent_packet_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698