[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #17086 [Stem]: CircuitEvent socks_username and socks_password is always None
#17086: CircuitEvent socks_username and socks_password is always None
------------------------+--------------------------------------------
Reporter: trodun | Owner:
Type: defect | Status: reopened
Priority: normal | Milestone:
Component: Stem | Version:
Resolution: | Keywords: socks_username, socks_password
Actual Points: | Parent ID:
Points: |
------------------------+--------------------------------------------
Changes (by yawning):
* component: Tor => Stem
Comment:
This is not a tor bug though the behavior is counter-intuitive (Changed
the component, though I think Stem is doing the right thing as well).
This is what is happening in the `launch_tor_with_config` call:
1. Stem fork/execs a tor instance and waits for it to bootstrap to 100%.
2. Tor starts up, and builds a test circuit to a random exit. (`Tor has
successfully opened a circuit. Looks like client functionality is
working.`)
3. Tor finishes bootstrapping.
4. Stem returns from the call.
Since a usable circuit is already built (the one use for testing client
functionality), tor is just attaching the incoming request to the existing
(`BUILT`) circuit, and no circuit status events are fired.
{{{
ypres :: /tmp % python2 fuck.py
# Dump the circuit status before issuing a query.
circuit-status=
1 BUILT
$9F7D6E6420183C2B76D3CE99624EBC98A21A967E~Nivrim,$B143D439B72D239A419F8DCE07B8A8EB1B486FA7~wardsback,$5FEA88EFEDC5897F7094A1759CE25BA0D3DA87E7~YellowNet
BUILD_FLAGS=NEED_CAPACITY PURPOSE=GENERAL
TIME_CREATED=2015-09-20T14:56:06.293922
2 EXTENDED
$9F7D6E6420183C2B76D3CE99624EBC98A21A967E~Nivrim,$5DEF69E67BAF2CF26D36B5AC2A925BB2EA376593~WhiteDragon
BUILD_FLAGS=NEED_CAPACITY PURPOSE=GENERAL
TIME_CREATED=2015-09-20T14:56:07.278613
3 EXTENDED BUILD_FLAGS=IS_INTERNAL,NEED_CAPACITY,NEED_UPTIME
PURPOSE=GENERAL TIME_CREATED=2015-09-20T14:56:08.278115
OK
# Query issued here.
# The STREAM event shows that the chosen CircuitID is '1'
STREAM 5 NEW 0 example.com:80 SOURCE_ADDR=127.0.0.1:38569 PURPOSE=USER
STREAM 5 SENTCONNECT 1 example.com:80
CIRC 3 EXTENDED $9F7D6E6420183C2B76D3CE99624EBC98A21A967E~Nivrim
BUILD_FLAGS=IS_INTERNAL,NEED_CAPACITY,NEED_UPTIME PURPOSE=GENERAL
TIME_CREATED=2015-09-20T14:56:08.278115
CIRC 4 LAUNCHED BUILD_FLAGS=IS_INTERNAL,NEED_CAPACITY,NEED_UPTIME
PURPOSE=GENERAL TIME_CREATED=2015-09-20T14:56:09.278708
CIRC 3 EXTENDED
$9F7D6E6420183C2B76D3CE99624EBC98A21A967E~Nivrim,$C382878DCDB4920EF768C99D3C31981DBE7E5F93~ddorfgermany
BUILD_FLAGS=IS_INTERNAL,NEED_CAPACITY,NEED_UPTIME PURPOSE=GENERAL
TIME_CREATED=2015-09-20T14:56:08.278115
CIRC 4 EXTENDED $9F7D6E6420183C2B76D3CE99624EBC98A21A967E~Nivrim
BUILD_FLAGS=IS_INTERNAL,NEED_CAPACITY,NEED_UPTIME PURPOSE=GENERAL
TIME_CREATED=2015-09-20T14:56:09.278708
CIRC 2 EXTENDED
$9F7D6E6420183C2B76D3CE99624EBC98A21A967E~Nivrim,$5DEF69E67BAF2CF26D36B5AC2A925BB2EA376593~WhiteDragon,$615EBC4B48F03858FA50A3E23E5AF569D0D2308A~AccessNow004
BUILD_FLAGS=NEED_CAPACITY PURPOSE=GENERAL
TIME_CREATED=2015-09-20T14:56:07.278613
CIRC 2 BUILT
$9F7D6E6420183C2B76D3CE99624EBC98A21A967E~Nivrim,$5DEF69E67BAF2CF26D36B5AC2A925BB2EA376593~WhiteDragon,$615EBC4B48F03858FA50A3E23E5AF569D0D2308A~AccessNow004
BUILD_FLAGS=NEED_CAPACITY PURPOSE=GENERAL
TIME_CREATED=2015-09-20T14:56:07.278613
CIRC 3 EXTENDED
$9F7D6E6420183C2B76D3CE99624EBC98A21A967E~Nivrim,$C382878DCDB4920EF768C99D3C31981DBE7E5F93~ddorfgermany,$5BB51E650366D14C95027DB2F1D7A69BC5B00676~Richie
BUILD_FLAGS=IS_INTERNAL,NEED_CAPACITY,NEED_UPTIME PURPOSE=GENERAL
TIME_CREATED=2015-09-20T14:56:08.278115
CIRC 3 BUILT
$9F7D6E6420183C2B76D3CE99624EBC98A21A967E~Nivrim,$C382878DCDB4920EF768C99D3C31981DBE7E5F93~ddorfgermany,$5BB51E650366D14C95027DB2F1D7A69BC5B00676~Richie
BUILD_FLAGS=IS_INTERNAL,NEED_CAPACITY,NEED_UPTIME PURPOSE=GENERAL
TIME_CREATED=2015-09-20T14:56:08.278115
STREAM 5 REMAP 1 93.184.216.34:80 SOURCE=EXIT
STREAM 5 SUCCEEDED 1 93.184.216.34:80
CIRC 4 EXTENDED
$9F7D6E6420183C2B76D3CE99624EBC98A21A967E~Nivrim,$9D5A5D54EC2B63CBDA5345EAEA9768539E926C5E~CatRelay12
BUILD_FLAGS=IS_INTERNAL,NEED_CAPACITY,NEED_UPTIME PURPOSE=GENERAL
TIME_CREATED=2015-09-20T14:56:09.278708
CIRC 4 EXTENDED
$9F7D6E6420183C2B76D3CE99624EBC98A21A967E~Nivrim,$9D5A5D54EC2B63CBDA5345EAEA9768539E926C5E~CatRelay12,$E0BACC71EE7065CA3A6EAC50715886827BC9F7BA~Vienna
BUILD_FLAGS=IS_INTERNAL,NEED_CAPACITY,NEED_UPTIME PURPOSE=GENERAL
TIME_CREATED=2015-09-20T14:56:09.278708
CIRC 4 BUILT
$9F7D6E6420183C2B76D3CE99624EBC98A21A967E~Nivrim,$9D5A5D54EC2B63CBDA5345EAEA9768539E926C5E~CatRelay12,$E0BACC71EE7065CA3A6EAC50715886827BC9F7BA~Vienna
BUILD_FLAGS=IS_INTERNAL,NEED_CAPACITY,NEED_UPTIME PURPOSE=GENERAL
TIME_CREATED=2015-09-20T14:56:09.278708
# Query is done here.
STREAM 5 CLOSED 1 93.184.216.34:80 REASON=DONE
# Dump the circuit status again.
circuit-status=
1 BUILT
$9F7D6E6420183C2B76D3CE99624EBC98A21A967E~Nivrim,$B143D439B72D239A419F8DCE07B8A8EB1B486FA7~wardsback,$5FEA88EFEDC5897F7094A1759CE25BA0D3DA87E7~YellowNet
BUILD_FLAGS=NEED_CAPACITY PURPOSE=GENERAL
TIME_CREATED=2015-09-20T14:56:06.293922 SOCKS_USERNAME="data"
SOCKS_PASSWORD="lost"
2 BUILT
$9F7D6E6420183C2B76D3CE99624EBC98A21A967E~Nivrim,$5DEF69E67BAF2CF26D36B5AC2A925BB2EA376593~WhiteDragon,$615EBC4B48F03858FA50A3E23E5AF569D0D2308A~AccessNow004
BUILD_FLAGS=NEED_CAPACITY PURPOSE=GENERAL
TIME_CREATED=2015-09-20T14:56:07.278613
3 BUILT
$9F7D6E6420183C2B76D3CE99624EBC98A21A967E~Nivrim,$C382878DCDB4920EF768C99D3C31981DBE7E5F93~ddorfgermany,$5BB51E650366D14C95027DB2F1D7A69BC5B00676~Richie
BUILD_FLAGS=IS_INTERNAL,NEED_CAPACITY,NEED_UPTIME PURPOSE=GENERAL
TIME_CREATED=2015-09-20T14:56:08.278115
4 BUILT
$9F7D6E6420183C2B76D3CE99624EBC98A21A967E~Nivrim,$9D5A5D54EC2B63CBDA5345EAEA9768539E926C5E~CatRelay12,$E0BACC71EE7065CA3A6EAC50715886827BC9F7BA~Vienna
BUILD_FLAGS=IS_INTERNAL,NEED_CAPACITY,NEED_UPTIME PURPOSE=GENERAL
TIME_CREATED=2015-09-20T14:56:09.278708
OK
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/17086#comment:11>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs