[tor-bugs] #18363 [Tor]: Tor could use a publish/subscribe abstrction

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Feb 22 14:09:46 UTC 2016


#18363: Tor could use a publish/subscribe abstrction
------------------------+--------------------------------
     Reporter:  nickm   |      Owner:
         Type:  defect  |     Status:  new
     Priority:  Medium  |  Milestone:  Tor: 0.2.9.x-final
    Component:  Tor     |    Version:
     Severity:  Normal  |   Keywords:  modularity
Actual Points:          |  Parent ID:
       Points:  medium  |    Sponsor:  SponsorS
------------------------+--------------------------------
 Many places in our codebase, we have a function "foo_has_occurred()" that
 is called whenever foo happens, and which dispatches into many other semi-
 unrelated modules.  These functions tend to be fairly huge modularity
 violations, and create many surprising edges in our module callgraph.
 Using a publish/subscribe pattern would be the usual way to enforce these
 divisions.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/18363>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list