Neptune-Crypto/neptune-core

mark potential peer as invalid after a few failed connection attempts

开放

#35 创建于 2023年8月10日

 (7 条评论) (0 个反应) (1 位负责人)Rust (45 个派生)auto 404
enhancementgood first issuenetworking

仓库指标

星标
 (110 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

The client keeps track of potential peers by asking the peers it is currently connected to for their peers. Potential peers are kept in memory indefinitely. This leads to repeated failing connection attempts to stale peers.

Track the number of failed connection attempts per peer. If it crosses some threshold, don't attempt to connect to that peer. If the same peer gets announced again and some timeout has passed, reset the number of failed connection attempts and start connection attempts again.

贡献者指南