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

Unified Diff: net/tools/quic/quic_server_session_base.cc

Issue 1877703002: Landing Recent QUIC changes until 4/8/2016 17:17 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git sync Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/quic/quic_server_session_base.h ('k') | net/tools/quic/quic_server_session_base_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_server_session_base.cc
diff --git a/net/tools/quic/quic_server_session_base.cc b/net/tools/quic/quic_server_session_base.cc
index e2341906bdf04c12279a7b3e9e3ca59dbea43e9c..2f2c4d1a7b74e58ca0fd3341386eadb3fbcd3a03 100644
--- a/net/tools/quic/quic_server_session_base.cc
+++ b/net/tools/quic/quic_server_session_base.cc
@@ -29,7 +29,8 @@ QuicServerSessionBase::QuicServerSessionBase(
bandwidth_resumption_enabled_(false),
bandwidth_estimate_sent_to_client_(QuicBandwidth::Zero()),
last_scup_time_(QuicTime::Zero()),
- last_scup_packet_number_(0) {}
+ last_scup_packet_number_(0),
+ server_push_enabled_(false) {}
QuicServerSessionBase::~QuicServerSessionBase() {}
@@ -53,6 +54,8 @@ void QuicServerSessionBase::OnConfigNegotiated() {
ContainsQuicTag(config()->ReceivedConnectionOptions(), kBWMX);
bandwidth_resumption_enabled_ =
last_bandwidth_resumption || max_bandwidth_resumption;
+ server_push_enabled_ =
+ ContainsQuicTag(config()->ReceivedConnectionOptions(), kSPSH);
// If the client has provided a bandwidth estimate from the same serving
// region as this server, then decide whether to use the data for bandwidth
@@ -61,9 +64,9 @@ void QuicServerSessionBase::OnConfigNegotiated() {
crypto_stream_->PreviousCachedNetworkParams();
if (cached_network_params != nullptr &&
cached_network_params->serving_region() == serving_region_) {
- if (FLAGS_quic_log_received_parameters) {
- connection()->OnReceiveConnectionState(*cached_network_params);
- }
+ // Log the received connection parameters, regardless of how they
+ // get used for bandwidth resumption.
+ connection()->OnReceiveConnectionState(*cached_network_params);
if (bandwidth_resumption_enabled_) {
// Only do bandwidth resumption if estimate is recent enough.
« no previous file with comments | « net/tools/quic/quic_server_session_base.h ('k') | net/tools/quic/quic_server_session_base_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698