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

Unified Diff: net/quic/quic_config.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 | « no previous file | net/quic/quic_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_config.h
diff --git a/net/quic/quic_config.h b/net/quic/quic_config.h
index a9254f82deb606639a4283804562aa6d1b44bfe6..203eb2e2bd1c749a083356d8d0cff7092637d391 100644
--- a/net/quic/quic_config.h
+++ b/net/quic/quic_config.h
@@ -286,9 +286,23 @@ class NET_EXPORT_PRIVATE QuicConfig {
uint32 MaxStreamsPerConnection() const;
void set_max_time_before_crypto_handshake(
- QuicTime::Delta max_time_before_crypto_handshake);
+ QuicTime::Delta max_time_before_crypto_handshake) {
+ max_time_before_crypto_handshake_ = max_time_before_crypto_handshake;
+ }
- QuicTime::Delta max_time_before_crypto_handshake() const;
+ QuicTime::Delta max_time_before_crypto_handshake() const {
+ return max_time_before_crypto_handshake_;
+ }
+
+ void set_max_idle_time_before_crypto_handshake(
+ QuicTime::Delta max_idle_time_before_crypto_handshake) {
+ max_idle_time_before_crypto_handshake_ =
+ max_idle_time_before_crypto_handshake;
+ }
+
+ QuicTime::Delta max_idle_time_before_crypto_handshake() const {
+ return max_idle_time_before_crypto_handshake_;
+ }
// Sets the peer's default initial congestion window in packets.
void SetInitialCongestionWindowToSend(size_t initial_window);
@@ -346,7 +360,7 @@ class NET_EXPORT_PRIVATE QuicConfig {
uint32 ReceivedSocketReceiveBuffer() const;
- bool negotiated();
+ bool negotiated() const;
// SetDefaults sets the members to sensible, default values.
void SetDefaults();
@@ -364,6 +378,12 @@ class NET_EXPORT_PRIVATE QuicConfig {
private:
friend class test::QuicConfigPeer;
+ // Configurations options that are not negotiated.
+ // Maximum time the session can be alive before crypto handshake is finished.
+ QuicTime::Delta max_time_before_crypto_handshake_;
+ // Maximum idle time before the crypto handshake has completed.
+ QuicTime::Delta max_idle_time_before_crypto_handshake_;
+
// Congestion control feedback type.
QuicNegotiableTag congestion_feedback_;
// Connection options.
@@ -374,9 +394,6 @@ class NET_EXPORT_PRIVATE QuicConfig {
QuicNegotiableUint32 keepalive_timeout_seconds_;
// Maximum number of streams that the connection can support.
QuicNegotiableUint32 max_streams_per_connection_;
- // Maximum time till the session can be alive before crypto handshake is
- // finished. (Not negotiated).
- QuicTime::Delta max_time_before_crypto_handshake_;
// Initial congestion window in packets.
QuicFixedUint32 initial_congestion_window_;
// Initial round trip time estimate in microseconds.
« no previous file with comments | « no previous file | net/quic/quic_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698