[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [flashproxy/master] Have a proxy open two connections to the client.
commit b634d197fd7c2076d299850ca4e100116df59e21
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date: Wed Dec 12 02:12:30 2012 -0800
Have a proxy open two connections to the client.
I hope this is a stopgap measure until we can figure out
https://lists.torproject.org/pipermail/tor-dev/2012-December/004221.html.
What's going wrong is that each time you register, you have some
probability of success (close to 1). Requiring a second connection
squares (lowers) this success probability, not to mention it's slower
because flashproxy-reg-email can take up to a minute to serve you after
you register.
---
proxy/flashproxy.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/proxy/flashproxy.js b/proxy/flashproxy.js
index b18e9b5..a4b8f54 100644
--- a/proxy/flashproxy.js
+++ b/proxy/flashproxy.js
@@ -532,6 +532,10 @@ function FlashProxy() {
};
this.begin_proxy = function(client_addr, relay_addr) {
+ /* Start two proxy connections because of some versions of Tor making
+ two pt connections:
+ https://lists.torproject.org/pipermail/tor-dev/2012-December/004221.html */
+ this.make_proxy_pair(client_addr, relay_addr);
this.make_proxy_pair(client_addr, relay_addr);
};
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits