[tor-bugs] #3199 [Tor Relay]: Refactor periodic events
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Mon May 16 17:34:13 UTC 2011
#3199: Refactor periodic events
-----------------------+----------------------------------------------------
Reporter: nickm | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Tor: 0.2.3.x-final
Component: Tor Relay | Version:
Keywords: | Parent:
Points: | Actualpoints:
-----------------------+----------------------------------------------------
Right now we invoke a truly huge array of things from
second_elapsed_callback() and run_scheduled_events(). There are at least
23 separate static time_t values that we do a comparison against every
time a second elapses.
This is a really goofy way to handle periodic events. Let's refactor this
to instead use libevent's timing code. In addition, we could make the
timers first-class, so as to allow better introspection of Tor's status
wrt each timer.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/3199>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list