5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-22 22:15:46 +00:00

fix the sim, part of it bypasses queues so it's expected to see loops in those cases while things are in the middle of updating

This commit is contained in:
Arceliar 2018-06-07 21:06:30 -05:00
parent bced15b138
commit 6bdc9a7eb6

View File

@ -162,7 +162,9 @@ func testPaths(store map[[32]byte]*Node) bool {
for here := source; here != dest; {
temp++
if temp > 4096 {
panic("Loop?")
fmt.Println("Loop?")
time.Sleep(time.Second)
return false
}
nextPort := here.core.DEBUG_switchLookup(coords)
// First check if "here" is accepting packets from the previous node
@ -195,7 +197,7 @@ func testPaths(store map[[32]byte]*Node) bool {
source.index, source.core.DEBUG_getLocator(),
here.index, here.core.DEBUG_getLocator(),
dest.index, dest.core.DEBUG_getLocator())
here.core.DEBUG_getSwitchTable().DEBUG_dumpTable()
//here.core.DEBUG_getSwitchTable().DEBUG_dumpTable()
}
if here != source {
// This is sufficient to check for routing loops or blackholes