[tor-bugs] #28335 [Core Tor/Tor]: Make most periodic events turn themselves off when Tor is dormant, sleeping, etc.

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Nov 5 19:01:08 UTC 2018


#28335: Make most periodic events turn themselves off when Tor is dormant,
sleeping, etc.
------------------------------+--------------------------------
     Reporter:  nickm         |      Owner:  (none)
         Type:  enhancement   |     Status:  new
     Priority:  Medium        |  Milestone:  Tor: 0.3.6.x-final
    Component:  Core Tor/Tor  |    Version:
     Severity:  Normal        |   Keywords:
Actual Points:                |  Parent ID:  #25500
       Points:  10            |   Reviewer:
      Sponsor:                |
------------------------------+--------------------------------
 See #2149 and https://lists.torproject.org/pipermail/tor-
 dev/2018-November/013529.html for some background here.

 Right now we have a bunch of periodic events -- those in ROLE_ALL and
 those in second_elapsed_callback() -- that are scheduled all the time.
 Some of them are run even when DisableNetwork is set.

 We should change these events as follows: we should make "ROLE_ALL" a real
 always-on role, and make sure we're always in it.  Then we should move
 (nearly?) all the events out of ROLE_ALL into new roles, including a role
 that means "active network participant" -- that is, actively building and
 using circuits on the Tor network.

 We should make it so "that active network participant" will turn off after
 either a long time without client usage, or when the controller tells it
 to.

 We should make sure that every periodic event that remains in ROLE_ALL has
 a way to turn it off, a very generous and forgiving timeout, or both.

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


More information about the tor-bugs mailing list