[tor-bugs] #31121 [Core Tor/Tor]: Use publish-subscribe system in more places

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Jul 9 16:57:50 UTC 2019


#31121: Use publish-subscribe system in more places
-------------------------------+------------------------------
     Reporter:  nickm          |      Owner:  (none)
         Type:  enhancement    |     Status:  new
     Priority:  Medium         |  Milestone:  Tor: unspecified
    Component:  Core Tor/Tor   |    Version:
     Severity:  Normal         |   Keywords:
Actual Points:                 |  Parent ID:
       Points:                 |   Reviewer:
      Sponsor:  Sponsor31-can  |
-------------------------------+------------------------------
 Some likely code that we could replace includes:

  * directory_info_has_arrived
  * note_that_we_have_completed_a_circuit
  * note_that_we_maybe_cant_complete_circuits

  * circuit_has_opened()

  * All "we got a new consensus" events:
      * notify_before_networkstatus_changes
      * notify_after_networkstatus_changes

   * clock jump events:
     * circuit_note_clock_jumped
     * netstatus_note_clock_jumped

 There are probably more!

 As we do these, we should open subtickets, and not try to do them all as a
 part of this ticket.

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


More information about the tor-bugs mailing list