[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #3199 [Tor Relay]: Refactor periodic events
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs