commit 4cdd620d175f4dd539103f80a48dabf2fef23632 Author: David Fifield david@bamsoftware.com Date: Thu Jan 3 21:52:42 2013 -0800
Wait the poll interval before connecting to the facilitator the first time.
I mean this to cut down on unhelpful facilitator traffic. If a proxy can't even last a minute it's not much use to us. Potentially how long to wait initially could be a parameter separate from the poll interval. --- proxy/flashproxy.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/proxy/flashproxy.js b/proxy/flashproxy.js index b9e7b59..eea124c 100644 --- a/proxy/flashproxy.js +++ b/proxy/flashproxy.js @@ -490,7 +490,7 @@ function FlashProxy() { this.die(); return; } else { - this.proxy_main(); + setTimeout(this.proxy_main.bind(this), this.facilitator_poll_interval * 1000); } };
tor-commits@lists.torproject.org