Tor's once-per-second events are not quite once-per-second?
Mar 16 11:07:43.655 [debug] QtDebugMsg: torcontrol: Control Event: 650 BW 0 0 Mar 16 11:07:44.659 [debug] QtDebugMsg: torcontrol: Control Event: 650 BW 0 0 Mar 16 11:07:45.663 [debug] QtDebugMsg: torcontrol: Control Event: 650 BW 0 0 Mar 16 11:07:46.667 [debug] QtDebugMsg: torcontrol: Control Event: 650 BW 0 0 Mar 16 11:07:47.671 [debug] QtDebugMsg: torcontrol: Control Event: 650 BW 0 0 Mar 16 11:07:48.675 [debug] QtDebugMsg: torcontrol: Control Event: 650 BW 0 0 Mar 16 11:07:49.676 [debug] QtDebugMsg: torcontrol: Control Event: 650 BW 0 0 Mar 16 11:07:50.679 [debug] QtDebugMsg: torcontrol: Control Event: 650 BW 0 0 Mar 16 11:07:51.683 [debug] QtDebugMsg: torcontrol: Control Event: 650 BW 0 0
My 'bw' events are getting sent out slightly more than one second apart. Didn't we try to send them out every second? More broadly, is libevent calling our once-a-second events every 1.004 seconds or the like?
Maybe that evtimer_add() call in second_elapsed_callback() should be at the beginning? That seems a bit more fragile in the case where it takes a whole second to process stuff. But if it takes any non-trivial amount of time to process stuff, then that function isn't reliably getting called once a second. How big a problem is that?
[Automatically added by flyspray2trac: Operating System: All]