mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-22 13:00:47 +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:
parent
bced15b138
commit
6bdc9a7eb6
@ -162,7 +162,9 @@ func testPaths(store map[[32]byte]*Node) bool {
|
|||||||
for here := source; here != dest; {
|
for here := source; here != dest; {
|
||||||
temp++
|
temp++
|
||||||
if temp > 4096 {
|
if temp > 4096 {
|
||||||
panic("Loop?")
|
fmt.Println("Loop?")
|
||||||
|
time.Sleep(time.Second)
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
nextPort := here.core.DEBUG_switchLookup(coords)
|
nextPort := here.core.DEBUG_switchLookup(coords)
|
||||||
// First check if "here" is accepting packets from the previous node
|
// 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(),
|
source.index, source.core.DEBUG_getLocator(),
|
||||||
here.index, here.core.DEBUG_getLocator(),
|
here.index, here.core.DEBUG_getLocator(),
|
||||||
dest.index, dest.core.DEBUG_getLocator())
|
dest.index, dest.core.DEBUG_getLocator())
|
||||||
here.core.DEBUG_getSwitchTable().DEBUG_dumpTable()
|
//here.core.DEBUG_getSwitchTable().DEBUG_dumpTable()
|
||||||
}
|
}
|
||||||
if here != source {
|
if here != source {
|
||||||
// This is sufficient to check for routing loops or blackholes
|
// This is sufficient to check for routing loops or blackholes
|
||||||
|
Loading…
Reference in New Issue
Block a user