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

Unified Diff: net/socket/tcp_pinger.h

Issue 155020: Speed up net_unittests by ~20s by manipulating tcp_pinger timeouts. (Closed)
Patch Set: Created 11 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/tcp_pinger.h
diff --git a/net/socket/tcp_pinger.h b/net/socket/tcp_pinger.h
index 0b0bd9b380969864eec266258411aa68d5c9aa1c..37ad8813c2327bb3204b2138273b112371d4893c 100644
--- a/net/socket/tcp_pinger.h
+++ b/net/socket/tcp_pinger.h
@@ -41,9 +41,9 @@ class TCPPinger {
}
int Ping() {
- // Default is 10 tries, each with a timeout of 1000ms,
+ // Default is 40 tries, each with a timeout of 250ms,
// for a total max timeout of 10 seconds.
- return Ping(base::TimeDelta::FromMilliseconds(1000), 10);
+ return Ping(base::TimeDelta::FromMilliseconds(250), 40);
}
int Ping(base::TimeDelta tryTimeout, int nTries) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698