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

Unified Diff: net/quic/quic_stream_factory.cc

Issue 1610943002: Disable QUIC when a connection timesout with open streams by setting threshold value to 1 when flag… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@DISABLE_QUIC_WHEN_CONNECTION_TIMEOUT
Patch Set: fix a typo, add unittest Created 4 years, 11 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
Index: net/quic/quic_stream_factory.cc
diff --git a/net/quic/quic_stream_factory.cc b/net/quic/quic_stream_factory.cc
index 858f1cb93f0744e9960bd084dcd0393f8b1b04b4..93d408c5b16d42c68d6d0a1b860b539a6df33a24 100644
--- a/net/quic/quic_stream_factory.cc
+++ b/net/quic/quic_stream_factory.cc
@@ -568,6 +568,7 @@ QuicStreamFactory::QuicStreamFactory(
bool delay_tcp_race,
int max_server_configs_stored_in_properties,
bool close_sessions_on_ip_change,
+ bool disable_quic_when_connection_times_out_with_open_streams,
int idle_connection_timeout_seconds,
bool migrate_sessions_on_network_change,
const QuicTagVector& connection_options)
@@ -624,6 +625,8 @@ QuicStreamFactory::QuicStreamFactory(
has_initialized_data_(false),
task_runner_(nullptr),
weak_factory_(this) {
+ if (disable_quic_when_connection_times_out_with_open_streams)
+ threshold_timeouts_with_open_streams_ = 1;
DCHECK(transport_security_state_);
DCHECK(http_server_properties_);
crypto_config_.set_user_agent_id(user_agent_id);

Powered by Google App Engine
This is Rietveld 408576698