[tor-commits] [flashproxy/master] Wait the poll interval before connecting to the facilitator the first time.
dcf at torproject.org
dcf at torproject.org
Fri Jan 4 05:55:55 UTC 2013
commit 4cdd620d175f4dd539103f80a48dabf2fef23632
Author: David Fifield <david at 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);
}
};
More information about the tor-commits
mailing list