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

Unified Diff: net/quic/chromium/quic_stream_factory.h

Issue 2301453002: Quic use reduced PING timeout when previous connection times out with open streams (Closed)
Patch Set: Created 4 years, 4 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/chromium/quic_stream_factory.h
diff --git a/net/quic/chromium/quic_stream_factory.h b/net/quic/chromium/quic_stream_factory.h
index b0fef1fb7c8e3591cbfe692c9bfe437e574b8e62..dd895cdf4a9699122b65d10538badc3073562113 100644
--- a/net/quic/chromium/quic_stream_factory.h
+++ b/net/quic/chromium/quic_stream_factory.h
@@ -190,6 +190,7 @@ class NET_EXPORT_PRIVATE QuicStreamFactory
bool close_sessions_on_ip_change,
bool disable_quic_on_timeout_with_open_streams,
int idle_connection_timeout_seconds,
+ int reduced_ping_timeout_seconds,
int packet_reader_yield_after_duration_milliseconds,
bool migrate_sessions_on_network_change,
bool migrate_sessions_early,
@@ -373,6 +374,10 @@ class NET_EXPORT_PRIVATE QuicStreamFactory
enable_connection_racing_ = enable_connection_racing;
}
+ void set_reduced_ping_timeout() {
+ ping_timeout_seconds_ = reduced_ping_timeout_seconds_;
+ }
+
int socket_receive_buffer_size() const { return socket_receive_buffer_size_; }
bool delay_tcp_race() const { return delay_tcp_race_; }
@@ -596,6 +601,10 @@ class NET_EXPORT_PRIVATE QuicStreamFactory
// Set if we do want to delay TCP connection when it is racing with QUIC.
bool delay_tcp_race_;
+ // PING timeout for connections.
+ int ping_timeout_seconds_;
+ int reduced_ping_timeout_seconds_;
Ryan Hamilton 2016/09/01 16:36:14 nit: Let's make these QuicTime::Deltas
Zhongyi Shi 2016/09/01 18:58:29 Done.
+
// If more than |yield_after_packets_| packets have been read or more than
// |yield_after_duration_| time has passed, then
// QuicChromiumPacketReader::StartReading() yields by doing a PostTask().

Powered by Google App Engine
This is Rietveld 408576698