[tor-bugs] #21774 [Core Tor/Stem]: Fix CONN_BW event listening
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sun Mar 19 16:24:13 UTC 2017
#21774: Fix CONN_BW event listening
-------------------------------+--------------------
Reporter: timonh | Owner: atagar
Type: defect | Status: new
Priority: Low | Milestone:
Component: Core Tor/Stem | Version:
Severity: Normal | Keywords:
Actual Points: | Parent ID:
Points: | Reviewer:
Sponsor: |
-------------------------------+--------------------
The ConnectionBandwidthEvent overwrites the type field of the Event class.
Therefore the method _handle_event in control.py erroneously checks if the
connection type (if it is a ConnectionBandwidthEvent) is contained in the
event listeners list.
All in all you can't receive CONN_BW events in stem.
I fixed it by renaming the type of the ConnectionBandwidthEvent to
conn_type.
My changes can be found here:
https://github.com/kithack/stem/commit/23fe7b6cbd69c6209657c9531a21502a67ecf5e5
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/21774>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list