[tor-bugs] #7152 [Stem]: Implement Controller.attach_stream
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sun Dec 16 22:27:28 UTC 2012
#7152: Implement Controller.attach_stream
------------------------+---------------------------------------------------
Reporter: neena | Owner: atagar
Type: task | Status: needs_information
Priority: normal | Milestone:
Component: Stem | Version:
Keywords: controller | Parent:
Points: | Actualpoints:
------------------------+---------------------------------------------------
Comment(by robinson):
Replying to [comment:9 atagar]:
> > I think the best long-term method would be to move the re-usable parts
from CircuitEvent to (maybe) stem.response.CircuitEntry, then make
CircuitEvent and Controller.get_circuit() into wrappers for the new
function.
>
> Agreed.
I looked into how this might be accomplished. Short story: it gets very
hairy, very fast with interactions between response.convert,
response.getinfo.GetInfoResponse, events.Event, and (in this case)
events.CircEvent.
So, Ravi, I like your current solution. Unless we see a performance
problem (unlikely), just think of this as "casting" from a GETINFO
response to CIRC events. 8-)
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7152#comment:10>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list