[tor-bugs] #6666 [Stem]: Stem wrapper method for the EXTENDCIRCUIT control command
Tor Bug Tracker & Wiki
blackhole at torproject.org
Wed Nov 7 01:14:40 UTC 2012
#6666: Stem wrapper method for the EXTENDCIRCUIT control command
--------------------+-------------------------------------------------------
Reporter: neena | Owner: neena
Type: task | Status: needs_information
Priority: normal | Milestone:
Component: Stem | Version:
Keywords: | Parent:
Points: | Actualpoints:
--------------------+-------------------------------------------------------
Comment(by neena):
Replying to [comment:2 atagar]:
> {{{
> However, there's still a couple mysteries...
>
> * When I was offline I got the following stacktrace...
>
> ======================================================================
>
> ERROR: test_extendcircuit
>
> ----------------------------------------------------------------------
> Traceback:
> File "/home/atagar/Desktop/stem/test/integ/control/controller.py",
line 373, in test_extendcircuit
> circ_id = controller.extend_circuit(0)
> File "/home/atagar/Desktop/stem/stem/control.py", line 1109, in
extend_circuit
> raise stem.socket.ProtocolError("EXTENDCIRCUIT returned unexpected
response code: %s" % response.code)
> ProtocolError: EXTENDCIRCUIT returned unexpected response code: 512
> ----------------------------------------------------------------------
>
> However, according to the control-spec the 512 response code is for
"Syntax
> error in command argument". That doesn't make sense if we're failing
because
> we lack a connection.
Odd. I get
"551 Couldn't start circuit" when I check manually,
and "ProtocolError: EXTENDCIRCUIT returned unexpected response code: 551"
when I run
the tests (after disabling check_online). I'm running "Tor version
0.2.3.24-rc (git-f1f16882e345cd4c)".
If you're still getting this, can you tell me what the value of
response.message is.
> * Is the 'path' argument for EXTENDCIRCUIT the circuits that we build
through,
> or the relays to be chosen from when building a single hop? The
EXTENDCIRCUIT
> description doesn't say, which seems to me to be a weakness in the
spec.
> }}}
It's the list of relays with which the circuit should be extended.
Extending "3 BUILT a,b,c" with "EXTENDCIRCUIT 3 x,y,z" will make it
"3 BUILT a,b,c,x,y,z"
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/6666#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list