Move close-and-cleanup functions to a postloop event.

Implements ticket 25932.
This commit is contained in:
Nick Mathewson
2018-04-26 13:15:38 -04:00
parent 7b09282dc7
commit 96c5ac338a
5 changed files with 45 additions and 13 deletions
+9
View File
@@ -0,0 +1,9 @@
o Minor features (mainloop):
- Move responsibility for
closing connections, circuits, and channels
from a once-per-second callback to a callback that is only scheduled as
needed. Once enough items are removed from our once-per-second
callback, we can eliminate it entirely to conserve CPU when idle.
Closes ticket
25932.