try to switch parents if a parent link is blocked

This commit is contained in:
Arceliar 2019-03-07 21:36:12 -06:00
parent 898f7865b1
commit 02b1892cc5
2 changed files with 31 additions and 0 deletions

View file

@ -309,6 +309,7 @@ func (intf *linkInterface) handler() error {
case <-recvTimer.C:
// We haven't received anything, so assume there's a problem and don't return this node to the switch until they start responding
isAlive = false
intf.link.core.switchTable.blockPeer(intf.peer.port)
case <-closeTimer.C:
// We haven't received anything in a really long time, so things have died at the switch level and then some...
// Just close the connection at this point...