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

Unified Diff: net/quic/quic_stream_factory.cc

Issue 15937012: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Small bug fixes Created 7 years, 7 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 f213696f23efb1ee53b6ff2c2d7eb496dcf0db24..6e767d720f486cebbddd2c12808cf31b3891a978 100644
--- a/net/quic/quic_stream_factory.cc
+++ b/net/quic/quic_stream_factory.cc
@@ -226,6 +226,10 @@ QuicStreamFactory::QuicStreamFactory(
random_generator_(random_generator),
clock_(clock),
weak_factory_(this) {
+ config_.SetDefaults();
+ config_.set_idle_connection_state_lifetime(
+ QuicTime::Delta::FromSeconds(30),
+ QuicTime::Delta::FromSeconds(30));
}
QuicStreamFactory::~QuicStreamFactory() {
@@ -386,12 +390,8 @@ QuicClientSession* QuicStreamFactory::CreateSession(
QuicClientSession* session =
new QuicClientSession(connection, socket, this,
quic_crypto_client_stream_factory_,
- host_port_proxy_pair.first.host(), QuicConfig(),
+ host_port_proxy_pair.first.host(), config_,
crypto_config, net_log.net_log());
- session->config()->SetDefaults();
- session->config()->set_idle_connection_state_lifetime(
- QuicTime::Delta::FromSeconds(30),
- QuicTime::Delta::FromSeconds(30));
all_sessions_.insert(session); // owning pointer
return session;
}

Powered by Google App Engine
This is Rietveld 408576698