summaryrefslogtreecommitdiffstats
path: root/net/socket/tcp_pinger.h
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-06 16:32:56 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-06 16:32:56 +0000
commit7a65eb6d11eb5388998a523ea248707e047226a4 (patch)
treef188d67579865c3342298f3fc9c3966365d6d6e5 /net/socket/tcp_pinger.h
parent3b568bf423d41df1f886fb8ae0bf64a8a9e9bd66 (diff)
downloadchromium_src-7a65eb6d11eb5388998a523ea248707e047226a4.zip
chromium_src-7a65eb6d11eb5388998a523ea248707e047226a4.tar.gz
chromium_src-7a65eb6d11eb5388998a523ea248707e047226a4.tar.bz2
Speed up net_unittests by ~20s by manipulating tcp_pinger timeouts.
Review URL: http://codereview.chromium.org/155020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19951 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/tcp_pinger.h')
-rw-r--r--net/socket/tcp_pinger.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/socket/tcp_pinger.h b/net/socket/tcp_pinger.h
index 0b0bd9b..37ad881 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) {