p2p/discv5: unset pingEcho on pong timeout (#21324)

pull/21326/head
libotony 4 years ago committed by GitHub
parent af258efdb9
commit 2e08dad9e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      p2p/discv5/net.go

@ -1037,6 +1037,9 @@ func (net *Network) handle(n *Node, ev nodeEvent, pkt *ingressPacket) error {
net.db.ensureExpirer() net.db.ensureExpirer()
} }
} }
if ev == pongTimeout {
n.pingEcho = nil // clean up if pongtimeout
}
if n.state == nil { if n.state == nil {
n.state = unknown //??? n.state = unknown //???
} }

Loading…
Cancel
Save