[tor-commits] [flashproxy/master] Have a proxy open two connections to the client.

dcf at torproject.org dcf at torproject.org
Wed Dec 12 11:41:52 UTC 2012


commit b634d197fd7c2076d299850ca4e100116df59e21
Author: David Fifield <david at bamsoftware.com>
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);
     };
 





More information about the tor-commits mailing list