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

Unified Diff: net/spdy/spdy_session.h

Issue 8497063: Send preface-PING message once in 10 secs and send PING (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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/spdy/spdy_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_session.h
===================================================================
--- net/spdy/spdy_session.h (revision 109371)
+++ net/spdy/spdy_session.h (working copy)
@@ -395,11 +395,11 @@
// --------------------------
// 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 @@
// 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 @@
// 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
« no previous file with comments | « no previous file | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698