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

Unified Diff: net/quic/quic_connection.h

Issue 610073002: Change the pre-handshake idle timeout to 5s from 120s, and the default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Add_a_convenience_method_76423808
Patch Set: Created 6 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/quic_config.cc ('k') | net/quic/quic_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_connection.h
diff --git a/net/quic/quic_connection.h b/net/quic/quic_connection.h
index ffe08477c6ae34fdcfe7985d14da0c5bde6a2ca5..d1b3cb180700cdc0a7ffb1bc4c596c949bdcdd29 100644
--- a/net/quic/quic_connection.h
+++ b/net/quic/quic_connection.h
@@ -425,6 +425,7 @@ class NET_EXPORT_PRIVATE QuicConnection
// Returns true if the connection has queued packets or frames.
bool HasQueuedData() const;
+ // TODO(ianswett): Remove when quic_unified_timeouts is removed.
// Sets (or resets) the idle state connection timeout. Also, checks and times
// out the connection if network timer has expired for |timeout|.
void SetIdleNetworkTimeout(QuicTime::Delta timeout);
@@ -434,6 +435,12 @@ class NET_EXPORT_PRIVATE QuicConnection
// handshake finishes.
void SetOverallConnectionTimeout(QuicTime::Delta timeout);
+ // Sets the overall and idle state connection timeouts.
+ // Times out the connection if the timeout has been reached and
+ // the quic_timeouts_only_from_alarms flag is false.
+ void SetNetworkTimeouts(QuicTime::Delta overall_timeout,
+ QuicTime::Delta idle_timeout);
+
// If the connection has timed out, this will close the connection.
// Otherwise, it will reschedule the timeout alarm.
void CheckForTimeout();
« no previous file with comments | « net/quic/quic_config.cc ('k') | net/quic/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698