fix bug in switch actor's cleanRoot, strict nonce handling at the session level, and add separate queues per stream to the packetqueue code

This commit is contained in:
Arceliar 2020-04-03 19:26:48 -05:00
parent 03a19997b8
commit 09efdfef9a
3 changed files with 105 additions and 26 deletions

View file

@ -227,10 +227,10 @@ func (t *switchTable) _cleanRoot() {
t.time = now
if t.data.locator.root != t.key {
t.data.seq++
defer t._updateTable()
t.core.router.reset(nil)
defer t.core.router.reset(nil)
}
t.data.locator = switchLocator{root: t.key, tstamp: now.Unix()}
t._updateTable() // updates base copy of switch msg in lookupTable
t.core.peers.sendSwitchMsgs(t)
}
}