[tor-commits] [stem/master] ORPort descriptor downloading support

atagar at torproject.org atagar at torproject.org
Tue Apr 24 19:41:39 UTC 2018


commit 820881a6dd9a5ff0e6b4f0b78b733f1bcd8e096d
Merge: 27b2cbd7 b0433da3
Author: Damian Johnson <atagar at torproject.org>
Date:   Tue Apr 24 12:30:17 2018 -0700

    ORPort descriptor downloading support
    
    DescriptorDownloader support for downloading from relay ORPorts. To do this
    simply provide an ORPort as the endpoint...
    
      reply = stem.descriptor.remote.get_server_descriptors(
        endpoint = stem.ORPort('12.34.56.78', 90),
      )
    
    Like the stem.client module on which this is based this is still very much
    alpha functionality. No doubt as we use this in the wild we'll discover rough
    edges. That said, in practice seems to work.
    
    Originally we planned for this to be part of Dave's SoP project, but I need
    this capability for something of my own (health check for my tor relay). No
    matter - just means Dave has more time for his other project tasks. :P

 docs/change_log.rst             |   4 +-
 stem/__init__.py                |  55 +++++++++
 stem/cached_tor_manual.sqlite   | Bin 239616 -> 238592 bytes
 stem/client/__init__.py         |  11 +-
 stem/descriptor/remote.py       | 247 ++++++++++++++++++++++++++++++----------
 stem/manual.py                  |  15 ++-
 stem/settings.cfg               |   9 +-
 stem/util/connection.py         |   2 +
 test/integ/descriptor/remote.py |  27 +++++
 test/integ/manual.py            |  38 +------
 test/settings.cfg               |   3 +-
 test/unit/descriptor/remote.py  | 111 ++++++++++++++----
 test/unit/endpoint.py           |  46 ++++++++
 13 files changed, 438 insertions(+), 130 deletions(-)



More information about the tor-commits mailing list