From aee1bd3083019189dd438dd3a92de165f392af10 Mon Sep 17 00:00:00 2001 From: Daniel Liu <139250065@qq.com> Date: Sat, 13 Sep 2025 09:54:17 +0800 Subject: [PATCH] ethstats: fix reconnection issue, implement primus pings #21347 (#1443) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Péter Szilágyi --- ethstats/ethstats.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ethstats/ethstats.go b/ethstats/ethstats.go index f3b68d4c94..147a171870 100644 --- a/ethstats/ethstats.go +++ b/ethstats/ethstats.go @@ -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) } } }