nskinkel / oppy

A Tor client (onion proxy) implementation in Python
BSD 3-Clause "New" or "Revised" License
24 stars 3 forks source link

socks.py - Fix `SOCKSProtocol.dataReceived()` Control Logic #10

Closed dwtj closed 10 years ago

dwtj commented 10 years ago

The control-flow in SOCKSProtocol.dataReceived() is very incorrect. Functionality was divided into much more focused handler functions, but they are not tied together correctly. To compensate, I may need to revise the (mini) state-machine, return values, and argument passing.

dwtj commented 10 years ago

Initial fix with b00253e.