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

Unified Diff: net/quic/quic_server_session.cc

Issue 1037633002: Add a QUIC connection option(BWMX) to resume to the max bandwidth (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Populate_RTT_info_89043159
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_sent_packet_manager_test.cc ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_server_session.cc
diff --git a/net/quic/quic_server_session.cc b/net/quic/quic_server_session.cc
index acd5ceb10848fc68821baa6c4e68c448a43dba89..4545b08768b2a2bc330bdf0421fddcdcaccc5d2b 100644
--- a/net/quic/quic_server_session.cc
+++ b/net/quic/quic_server_session.cc
@@ -47,10 +47,14 @@ void QuicServerSession::OnConfigNegotiated() {
// bandwidth resumption.
const CachedNetworkParameters* cached_network_params =
crypto_stream_->previous_cached_network_params();
+ const bool max_bandwidth_resumption =
+ ContainsQuicTag(config()->ReceivedConnectionOptions(), kBWMX);
if (cached_network_params != nullptr &&
- ContainsQuicTag(config()->ReceivedConnectionOptions(), kBWRE) &&
+ (ContainsQuicTag(config()->ReceivedConnectionOptions(), kBWRE) ||
+ max_bandwidth_resumption) &&
cached_network_params->serving_region() == serving_region_) {
- connection()->ResumeConnectionState(*cached_network_params);
+ connection()->ResumeConnectionState(*cached_network_params,
+ max_bandwidth_resumption);
}
if (FLAGS_enable_quic_fec &&
« no previous file with comments | « net/quic/quic_sent_packet_manager_test.cc ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698