ethstats: fix reconnection issue, implement primus pings #21347 (#1443)

Co-authored-by: Péter Szilágyi <peterke@gmail.com>
This commit is contained in:
Daniel Liu 2025-09-13 09:54:17 +08:00 committed by GitHub
parent 23acecf6d8
commit aee1bd3083
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -372,8 +372,10 @@ func (s *Service) loop(chainHeadCh chan core.ChainHeadEvent, txEventCh chan core
}
}
fullReport.Stop()
// Make sure the connection is closed
// Close the current connection and establish a new one
conn.Close()
errTimer.Reset(0)
}
}
}