[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [ooni-probe/master] Implementing bridge failover in ooniprobe
commit 46c623245bb7dbe791e5cf1cd2edaf2a46a5e7e0
Author: Arturo Filastò <arturo@xxxxxxxxxxx>
Date: Tue Jun 14 16:15:44 2016 +0300
Implementing bridge failover in ooniprobe
We support failing over to obfs4 and meek when vanilla tor does not work.
* This implements #538
---
ooni/utils/onion.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/ooni/utils/onion.py b/ooni/utils/onion.py
index e18a6ee..51cd044 100644
--- a/ooni/utils/onion.py
+++ b/ooni/utils/onion.py
@@ -214,11 +214,16 @@ def get_client_transport(transport):
class TorLauncherWithRetries(object):
+<<<<<<< 970cb5191f77b1da0d656e6441d77d42d53afb95
def __init__(self, tor_config, timeout=config.tor.timeout):
+=======
+ def __init__(self, tor_config, timeout=200):
+>>>>>>> Implementing bridge failover in ooniprobe
self.retry_with = ["obfs4", "meek"]
self.started = defer.Deferred()
self.tor_output = StringIO.StringIO()
self.tor_config = tor_config
+<<<<<<< 970cb5191f77b1da0d656e6441d77d42d53afb95
if timeout is None:
# XXX we will want to move setting the default inside of the
# config object.
@@ -238,6 +243,10 @@ class TorLauncherWithRetries(object):
setattr(new_tor_config, key, getattr(self.tor_config, key))
self.tor_config = new_tor_config
+=======
+ self.timeout = timeout
+
+>>>>>>> Implementing bridge failover in ooniprobe
def _progress_updates(self, prog, tag, summary):
log.msg("%d%%: %s" % (prog, summary))
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits