diff options
author | rtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-12 02:07:48 +0000 |
---|---|---|
committer | rtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-12 02:07:48 +0000 |
commit | 16aac2e74539eb7b63cad0ebc23464818dad5a7a (patch) | |
tree | 60dc0cbe0bcd2394de108dd7ec562e5418217246 /net/spdy/spdy_session.h | |
parent | 0ee57e2fd0130dea13c030e340c41f72a36840a5 (diff) | |
download | chromium_src-16aac2e74539eb7b63cad0ebc23464818dad5a7a.zip chromium_src-16aac2e74539eb7b63cad0ebc23464818dad5a7a.tar.gz chromium_src-16aac2e74539eb7b63cad0ebc23464818dad5a7a.tar.bz2 |
Send preface-PING message once in 10 secs and send PING
(if needed) when a Data frame (with non-zero payload)
is sent.
BUG=100975
R=willchan
TEST=network unittests
Review URL: http://codereview.chromium.org/8497063
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109758 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_session.h')
-rw-r--r-- | net/spdy/spdy_session.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/spdy/spdy_session.h b/net/spdy/spdy_session.h index 6eff60f..b45b361 100644 --- a/net/spdy/spdy_session.h +++ b/net/spdy/spdy_session.h @@ -395,11 +395,11 @@ class NET_EXPORT SpdySession : public base::RefCounted<SpdySession>, // -------------------------- // Helper methods for testing // -------------------------- - static void set_connection_at_risk_of_loss_ms(int duration) { - connection_at_risk_of_loss_ms_ = duration; + static void set_connection_at_risk_of_loss_seconds(int duration) { + connection_at_risk_of_loss_seconds_ = duration; } - static int connection_at_risk_of_loss_ms() { - return connection_at_risk_of_loss_ms_; + static int connection_at_risk_of_loss_seconds() { + return connection_at_risk_of_loss_seconds_; } static void set_trailing_ping_delay_time_ms(int duration) { @@ -564,7 +564,7 @@ class NET_EXPORT SpdySession : public base::RefCounted<SpdySession>, // This enables or disables connection health checking system. static bool enable_ping_based_connection_checking_; - // |connection_at_risk_of_loss_ms_| is an optimization to avoid sending + // |connection_at_risk_of_loss_seconds_| is an optimization to avoid sending // wasteful preface pings (when we just got some data). // // If it is zero (the most conservative figure), then we always send the @@ -577,7 +577,7 @@ class NET_EXPORT SpdySession : public base::RefCounted<SpdySession>, // We don't think any connection will time out in under about 10 seconds. So // this might as well be set to something conservative like 10 seconds. Later, // we could adjust it to send fewer pings perhaps. - static int connection_at_risk_of_loss_ms_; + static int connection_at_risk_of_loss_seconds_; // This is the amount of time (in milliseconds) we wait before sending a // trailing ping. We use a trailing ping (sent after all data) to get an |