[tor-commits] [stem/master] Cell attribute for unused padding

atagar at torproject.org atagar at torproject.org
Mon Jun 18 20:10:28 UTC 2018


commit 0192b29a4784465e5f69f11ced584a54644e4a90
Merge: 76c17caa 84e4e657
Author: Damian Johnson <atagar at torproject.org>
Date:   Mon Jun 18 13:07:38 2018 -0700

    Cell attribute for unused padding
    
    Some cells (often fixed width) are padded with extra bytes that are ignored.
    Rather than dropping these, assigning them to an 'unused' attribute of the base
    Cell class so callers receive all the data that went into constructing the
    cell.

 stem/client/cell.py      | 59 +++++++++++++++++++++++++++++++++++++++---------
 test/unit/client/cell.py |  6 +++++
 2 files changed, 54 insertions(+), 11 deletions(-)



More information about the tor-commits mailing list