mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
try to switch parents if a parent link is blocked
This commit is contained in:
parent
898f7865b1
commit
02b1892cc5
2 changed files with 31 additions and 0 deletions
|
@ -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...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue