[tor-commits] [stem/master] Expanded descriptor compression support
atagar at torproject.org
atagar at torproject.org
Sun Apr 1 04:40:01 UTC 2018
commit 079b48126fdc97d83df84d96e7423f99870f2584
Merge: 4a8f8d04 f7949b64
Author: Damian Johnson <atagar at torproject.org>
Date: Sat Mar 31 21:39:00 2018 -0700
Expanded descriptor compression support
We supported plaintext and gzip when downloading descriptors, but recently tor
added lzma and zstd support as well...
https://gitweb.torproject.org/torspec.git/commit/?id=1cb56af
Lzma support was added in Python 3.3...
https://docs.python.org/3/library/lzma.html
... and zstd is covered by the zstandard module...
https://pypi.python.org/pypi/zstandard
docs/change_log.rst | 1 +
stem/descriptor/remote.py | 182 ++++++++++++++++++++------
stem/version.py | 2 +
test/unit/descriptor/__init__.py | 9 ++
test/unit/descriptor/data/compressed_gzip | Bin 0 -> 1543 bytes
test/unit/descriptor/data/compressed_identity | 52 ++++++++
test/unit/descriptor/data/compressed_lzma | Bin 0 -> 1652 bytes
test/unit/descriptor/data/compressed_zstd | Bin 0 -> 1550 bytes
test/unit/descriptor/remote.py | 174 ++++++++++++++++++------
9 files changed, 341 insertions(+), 79 deletions(-)
More information about the tor-commits
mailing list