4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-07-13 12:56:29 +00:00

periodically clean up timed-out sessions and old signatures, instead of trying to do it when creating new sessions or adding new signatures

This commit is contained in:
Arceliar
2018-06-21 20:31:30 -05:00
parent 8e7edf566c
commit 5dfa01a0e8
3 changed files with 33 additions and 19 deletions

View File

@ -101,6 +101,8 @@ func (r *router) mainLoop() {
// Any periodic maintenance stuff goes here
r.core.switchTable.doMaintenance()
r.core.dht.doMaintenance()
r.core.sessions.cleanup()
r.core.sigs.cleanup()
util_getBytes() // To slowly drain things
}
case f := <-r.admin: