diff options
author | teor <teor2345@gmail.com> | 2015-01-10 22:20:29 +1100 |
---|---|---|
committer | teor <teor2345@gmail.com> | 2015-01-10 22:34:29 +1100 |
commit | ac2f90ed001f168459afce8d137fe5e43baa173f (patch) | |
tree | f46e062f36bf61527f78e34377b88a2f79359831 /src/test/test-network.sh | |
parent | f9d57473e1ff34f1ec56c62dd9ea138ceec42d6f (diff) | |
download | tor-ac2f90ed001f168459afce8d137fe5e43baa173f.tar.gz tor-ac2f90ed001f168459afce8d137fe5e43baa173f.zip |
Speed up hidden service bootstrap by reducing the initial post delay
Drop the MIN_REND_INITIAL_POST_DELAY on a testing network to 5 seconds,
but keep the default at 30 seconds.
Reduces the hidden service bootstrap to 25 seconds from around 45 seconds.
Change the default src/test/test-network.sh delay to 25 seconds.
Closes ticket 13401.
Diffstat (limited to 'src/test/test-network.sh')
-rwxr-xr-x | src/test/test-network.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-network.sh b/src/test/test-network.sh index d28fbde80f..be57cafb7f 100755 --- a/src/test/test-network.sh +++ b/src/test/test-network.sh @@ -45,7 +45,7 @@ PATH="$TOR_DIR/src/or:$TOR_DIR/src/tools:$PATH" # Sleep some, waiting for the network to bootstrap. # TODO: Add chutney command 'bootstrap-status' and use that instead. -BOOTSTRAP_TIME=${BOOTSTRAP_TIME:-18} +BOOTSTRAP_TIME=${BOOTSTRAP_TIME:-25} $ECHO_N "$myname: sleeping for $BOOTSTRAP_TIME seconds" n=$BOOTSTRAP_TIME; while [ $n -gt 0 ]; do sleep 1; n=$(expr $n - 1); $ECHO_N . |