[tor-bugs] #26063 [Core Tor/Tor]: Disable the per-second timer when we can

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed May 9 16:52:33 UTC 2018


#26063: Disable the per-second timer when we can
-------------------------+-------------------------------------------------
     Reporter:  nickm    |      Owner:  nickm
         Type:  defect   |     Status:  assigned
     Priority:  High     |  Milestone:  Tor: 0.3.4.x-final
    Component:  Core     |    Version:
  Tor/Tor                |   Keywords:  tor-client, 034-roadmap-master,
     Severity:  Normal   |  034-triage-20180328, 034-included-20180328
Actual Points:           |  Parent ID:  #25500
       Points:           |   Reviewer:
      Sponsor:           |
  Sponsor8-must          |
-------------------------+-------------------------------------------------
 Once the children of #25375 are merged, there will be nothing left in
 second_elapsed_callback that needs to happen once per second when Tor
 isn't running.  Once we're in that position, we can disable this callback
 whenever..

   1. we are completely hibernating (state == DORMANT) OR the network is
 disabled.
   2. The controller is not waiting for any per-second events.

 This change will require some related refactoring.

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


More information about the tor-bugs mailing list