Skip to content
Snippets Groups Projects
Commit a8e954f7 authored by Damian Johnson's avatar Damian Johnson
Browse files

Resume using descriptor compression

We explicitly opted for plaintext requests in c7bd0701 because compressed
queries had a truncated response. Sounds from #11648 like things should be
working now. Giving this a shot.
parent 3799fe75
Branches
No related tags found
No related merge requests found
......@@ -700,7 +700,7 @@ def get_consensuses():
:returns: tuple of the form ({authority => consensus}, issues)
"""
return _get_documents('consensus', '/tor/status-vote/current/consensus')
return _get_documents('consensus', '/tor/status-vote/current/consensus.z')
def get_votes():
......@@ -710,7 +710,7 @@ def get_votes():
:returns: tuple of the form ({authority => vote}, issues)
"""
return _get_documents('vote', '/tor/status-vote/current/authority')
return _get_documents('vote', '/tor/status-vote/current/authority.z')
def _get_documents(label, resource):
......@@ -737,7 +737,7 @@ def _get_documents(label, resource):
v3ident = DIRECTORY_AUTHORITIES[authority].v3ident
query = downloader.query(
'/tor/status-vote/current/%s' % v3ident,
'/tor/status-vote/current/%s.z' % v3ident,
default_params = False,
validate = True,
)
......
......@@ -36,8 +36,8 @@ def main():
# retrieve the server and extrainfo descriptors from any authority
targets = [
('server descriptors', '/tor/server/all'),
('extrainfo descriptors', '/tor/extra/all'),
('server descriptors', '/tor/server/all.z'),
('extrainfo descriptors', '/tor/extra/all.z'),
]
for descriptor_type, resource in targets:
......@@ -73,7 +73,7 @@ def main():
log.debug("Downloading the consensus from %s..." % authority.nickname)
query = stem.descriptor.remote.Query(
'/tor/status-vote/current/consensus',
'/tor/status-vote/current/consensus.z',
block = True,
timeout = 60,
endpoints = [(authority.address, authority.dir_port)],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment