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

Unified Diff: net/quic/core/quic_connection.h

Issue 2301453002: Quic use reduced PING timeout when previous connection times out with open streams (Closed)
Patch Set: address nits Created 4 years, 3 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/chromium/quic_stream_factory_test.cc ('k') | net/quic/core/quic_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_connection.h
diff --git a/net/quic/core/quic_connection.h b/net/quic/core/quic_connection.h
index 469d514c0858159107959a48ffd24451bfaeaa96..e4cb2f82735a714c98567178247ecffa5806e0e5 100644
--- a/net/quic/core/quic_connection.h
+++ b/net/quic/core/quic_connection.h
@@ -483,6 +483,10 @@ class NET_EXPORT_PRIVATE QuicConnection
debug_visitor_ = debug_visitor;
sent_packet_manager_->SetDebugDelegate(debug_visitor);
}
+ void set_ping_timeout(QuicTime::Delta ping_timeout) {
+ ping_timeout_ = ping_timeout;
+ }
+ const QuicTime::Delta ping_timeout() { return ping_timeout_; }
// Used in Chromium, but not internally.
void set_creator_debug_delegate(QuicPacketCreator::DebugDelegate* visitor) {
packet_generator_.set_debug_delegate(visitor);
@@ -979,6 +983,9 @@ class NET_EXPORT_PRIVATE QuicConnection
// SendAlarm.
bool defer_send_in_response_to_packets_;
+ // The timeout for PING.
+ QuicTime::Delta ping_timeout_;
+
// Arena to store class implementations within the QuicConnection.
QuicConnectionArena arena_;
« no previous file with comments | « net/quic/chromium/quic_stream_factory_test.cc ('k') | net/quic/core/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698