commit 46de5dfda5774934ed7c85b2716f94e4f49e7bee Author: David Fifield david@bamsoftware.com Date: Mon Oct 31 02:35:01 2011 -0700
Increase some delays to make sure browser starts up. --- experiments/switching/local-http-alternating.sh | 2 +- experiments/switching/proxy-loop.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/experiments/switching/local-http-alternating.sh b/experiments/switching/local-http-alternating.sh index 7847a33..8b3bf91 100755 --- a/experiments/switching/local-http-alternating.sh +++ b/experiments/switching/local-http-alternating.sh @@ -51,7 +51,7 @@ ensure_browser_started "$PROFILE_2"
./proxy-loop.sh "$PROXY_URL" "$PROFILE_1" "$PROFILE_2" >/dev/null 2>&1 & PIDS_TO_KILL+=($!) -visible_sleep 1 +visible_sleep 2
echo "Start socat." "$SOCAT" TCP-LISTEN:2000,reuseaddr,fork SOCKS4A:127.0.0.1:dummy:0,socksport=9001 & diff --git a/experiments/switching/proxy-loop.sh b/experiments/switching/proxy-loop.sh index 3c3b78a..5fa76a7 100755 --- a/experiments/switching/proxy-loop.sh +++ b/experiments/switching/proxy-loop.sh @@ -22,6 +22,8 @@ browser_clear "$PROFILE_1" ensure_browser_started "$PROFILE_2" browser_clear "$PROFILE_2"
+sleep 1 + while true; do echo "1 on" firefox -P "$PROFILE_1" -remote "openurl($URL)"