commit 7a54d54aff3b2a9ea738fdb56f4b810aecc8b199 Author: Damian Johnson atagar@torproject.org Date: Tue Dec 26 13:00:21 2017 -0800
Drop maximum microdescriptors we'll fetch to 90
Dropping this constant to match tor...
https://trac.torproject.org/projects/tor/ticket/24743 https://gitweb.torproject.org/tor.git/commit/?id=91077d3a --- docs/change_log.rst | 4 ++++ stem/descriptor/remote.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/docs/change_log.rst b/docs/change_log.rst index 3985dfcb..c1af4f58 100644 --- a/docs/change_log.rst +++ b/docs/change_log.rst @@ -49,6 +49,10 @@ The following are only available within Stem's `git repository * Added support for limiting the maximum number of streams to :func:`~stem.control.Controller.create_ephemeral_hidden_service` (:spec:`2fcb1c2`) * Stacktrace if :func:`stem.connection.connect` had a string port argument
+ * **Descriptors** + + * Reduced maximum descriptors fetched by the remote module to match tor's new limit (:trac:`24743`) + * **Website**
* Added `terminal styling <tutorials/east_of_the_sun.html#terminal-styling>`_ to our utilities tutorial diff --git a/stem/descriptor/remote.py b/stem/descriptor/remote.py index 9124a45f..8e4fa219 100644 --- a/stem/descriptor/remote.py +++ b/stem/descriptor/remote.py @@ -107,7 +107,7 @@ from stem.util import _hash_attr, connection, log, str_tools, tor_tools # fingerprint or hashes due to a limit on the url length by squid proxies.
MAX_FINGERPRINTS = 96 -MAX_MICRODESCRIPTOR_HASHES = 92 +MAX_MICRODESCRIPTOR_HASHES = 90
GITWEB_FALLBACK_DIR_URL = 'https://gitweb.torproject.org/tor.git/plain/src/or/fallback_dirs.inc' CACHE_PATH = os.path.join(os.path.dirname(__file__), 'fallback_directories.cfg')