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

Unified Diff: net/quic/quic_connection.h

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_connection.h
diff --git a/net/quic/quic_connection.h b/net/quic/quic_connection.h
index 773de2aba825a6cb548bef96c8a6883691c060f5..c37d9ad57c21cee03fd6977120a0237d6e188bc3 100644
--- a/net/quic/quic_connection.h
+++ b/net/quic/quic_connection.h
@@ -338,7 +338,12 @@ class NET_EXPORT_PRIVATE QuicConnection
// Sets (or resets) the idle state connection timeout. Also, checks and times
// out the connection if network timer has expired for |timeout|.
- void SetConnectionTimeout(QuicTime::Delta timeout);
+ void SetIdleNetworkTimeout(QuicTime::Delta timeout);
+ // Sets (or resets) the total time delta the connection can be alive for.
+ // Also, checks and times out the connection if timer has expired for
+ // |timeout|. Used to limit the time a connection can be alive before crypto
+ // handshake finishes.
+ void SetOverallConnectionTimeout(QuicTime::Delta timeout);
// If the connection has timed out, this will close the connection and return
// true. Otherwise, it will return false and will reset the timeout alarm.
@@ -600,7 +605,11 @@ class NET_EXPORT_PRIVATE QuicConnection
QuicPacketGenerator packet_generator_;
// Network idle time before we kill of this connection.
- QuicTime::Delta timeout_;
+ QuicTime::Delta idle_network_timeout_;
+ // Overall connection timeout.
+ QuicTime::Delta overall_connection_timeout_;
+ // Connection creation time.
+ QuicTime creation_time_;
// Statistics for this session.
QuicConnectionStats stats_;
@@ -637,7 +646,6 @@ class NET_EXPORT_PRIVATE QuicConnection
// True if the last ack received from the peer may have been truncated. False
// otherwise.
bool received_truncated_ack_;
-
bool send_ack_in_response_to_packet_;
// Set to true if the udp packet headers have a new self or peer address.

Powered by Google App Engine
This is Rietveld 408576698