-
- Downloads
ORPort directory requests cropped
Great catch from starlight that if descriptors downloaded via an ORPort exceeding a certain size get cropped... https://trac.torproject.org/projects/tor/ticket/28961 There were a couple issues here... * Our socket handling was pretty screwed up. Calling socket's recv() provides data available at the time, so if we haven't received the a full cell we should pull more. * Descriptors can be composed of multiple RELAY cells (the descriptor was cropped because we stopped reading after the first). Directory requests now keep reading cells we receive the END signal.
Showing
- stem/client/__init__.py 98 additions, 27 deletionsstem/client/__init__.py
- stem/client/cell.py 5 additions, 2 deletionsstem/client/cell.py
- stem/descriptor/remote.py 1 addition, 3 deletionsstem/descriptor/remote.py
- test/task.py 0 additions, 1 deletiontest/task.py
- test/unit/descriptor/remote.py 1 addition, 1 deletiontest/unit/descriptor/remote.py
Loading
Please register or sign in to comment