Unverified Commit 2e08dad9 authored by libotony's avatar libotony Committed by GitHub

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

parent af258efd
...@@ -1037,6 +1037,9 @@ func (net *Network) handle(n *Node, ev nodeEvent, pkt *ingressPacket) error { ...@@ -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 //???
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment