[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [flashproxy/master] Use -t1 in wget lines.
commit 99af8c35a04fc1e09d6c192e56ea66a356c68a38
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date: Fri Jul 15 21:16:17 2011 +0000
Use -t1 in wget lines.
This prevents reconnecting if the download is interrupted.
---
experiments/00 | 4 ++--
experiments/01 | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/experiments/00 b/experiments/00
index 484787d..a93ff3a 100755
--- a/experiments/00
+++ b/experiments/00
@@ -60,13 +60,13 @@ echo "getting the dump file..."
i=2
until [ $i -gt $NUM_CLIENTS ]; do
let local_port=2000+i
- gnome-terminal -e "/bin/bash -c 'wget http://localhost:${local_port}/dump -O - > /dev/null; exec /bin/bash -i'"
+ gnome-terminal -e "/bin/bash -c 'wget -t1 http://localhost:${local_port}/dump -O - > /dev/null; exec /bin/bash -i'"
let i=i+1
sleep 2
done
# Use this one for delaying the termination of experiment below
-wget http://localhost:2001/dump -O - > /dev/null
+wget -t1 http://localhost:2001/dump -O - > /dev/null
# Slaughter the processes
ps -ef | sed -n '/thttpd/{/grep/!p;}' | awk '{print$2}' | sudo xargs -i kill {}
diff --git a/experiments/01 b/experiments/01
index b3962f9..8a62479 100755
--- a/experiments/01
+++ b/experiments/01
@@ -64,12 +64,12 @@ echo "getting the dump file..."
i=2
until [ $i -gt $NUM_CLIENTS ]; do
let local_port=2000+i
- gnome-terminal -e "/bin/bash -c 'wget http://localhost:${local_port}/dump -O - > /dev/null; exec /bin/bash -i'"
+ gnome-terminal -e "/bin/bash -c 'wget -t1 http://localhost:${local_port}/dump -O - > /dev/null; exec /bin/bash -i'"
let i=i+1
done
# Use this one for delaying the termination of experiment below
-wget http://localhost:2001/dump -O - > /dev/null
+wget -t1 http://localhost:2001/dump -O - > /dev/null
# Slaughter the processes
sudo killall thttpd
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits