[tor-commits] [stem/master] Avoid downloading descriptors from Serge

atagar at torproject.org atagar at torproject.org
Wed Oct 24 21:06:44 UTC 2018


commit 98e1db3a2cc57c1a73adcd28001906f6c271bdfd
Author: Damian Johnson <atagar at torproject.org>
Date:   Wed Oct 24 14:05:24 2018 -0700

    Avoid downloading descriptors from Serge
    
    Like Bifroest before it, Serge is a bridge authority and frequently times out
    when asked to serve descriptors. Avoiding it, both so descriptor downloading
    works better and so I stop getting so many timeout notifications from DocTor.
---
 stem/descriptor/remote.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/stem/descriptor/remote.py b/stem/descriptor/remote.py
index dbae3cdf..f1171697 100644
--- a/stem/descriptor/remote.py
+++ b/stem/descriptor/remote.py
@@ -297,6 +297,10 @@ class Query(object):
      Avoid downloading from Bifroest. This is the bridge authority so it
      doesn't vote in the consensus, and apparently times out frequently.
 
+  .. versionchanged:: 1.8.0
+     Serge has replaced Bifroest as our bridge authority. Avoiding descriptor
+     downloads from it instead.
+
   :var str resource: resource being fetched, such as '/tor/server/all'
   :var str descriptor_type: type of descriptors being fetched (for options see
     :func:`~stem.descriptor.__init__.parse_file`), this is guessed from the
@@ -497,7 +501,7 @@ class Query(object):
     """
 
     if use_authority or not self.endpoints:
-      picked = random.choice([auth for auth in stem.directory.Authority.from_cache().values() if auth.nickname not in ('tor26', 'Bifroest')])
+      picked = random.choice([auth for auth in stem.directory.Authority.from_cache().values() if auth.nickname not in ('tor26', 'Serge')])
       return stem.DirPort(picked.address, picked.dir_port)
     else:
       return random.choice(self.endpoints)



More information about the tor-commits mailing list