[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [stem/master] Expanded descriptor compression support



commit 079b48126fdc97d83df84d96e7423f99870f2584
Merge: 4a8f8d04 f7949b64
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
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(-)

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits