[python] __LeaveStreamsUnattached

slush slush at centrum.cz
Sat Dec 6 02:33:44 UTC 2008


Copy from control-spec.txt:

<snip>
3.13. ATTACHSTREAM

  Sent from the client to the server.  The syntax is:
     "ATTACHSTREAM" SP StreamID SP CircuitID [SP "HOP=" HopNum] CRLF

  This message informs the server that the specified stream should be
  associated with the specified circuit.
<snip>

More high-level, my problem is, that I dont know StreamID *before* I create
stream by calling socket.connect(), but it never finish, because of
deadlock. Is there any possibility to get stream id before this call or do
this call non-blocking?

Thanks,
Marek

The
2008/12/6 slush <slush at centrum.cz>

>
> Are these steps logically OK? Because if yes, Im in problematic situation.
> When I tried to openstream with __LeaveStreamsUnattached=0 (default
> configuration), Tor automatically assign stream to any open circuit (but I
> want to use one specific). But when I set __LeaveStreamsUnattached=1, I
> obtain deadlock on "proxy.connect()" and I cannot continue with point 3).
> But I dont found any method, how to obtain stream id _before_ calling
> proxy.connect() to pair stream to circuit before calling this function...
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tor-talk/attachments/20081206/f6d08fb2/attachment.htm>


More information about the tor-talk mailing list