Skip to content

style(p2p): simplify pinger#165

Merged
mattsse merged 2 commits intomainfrom
matt/simplify-pinger
Nov 4, 2022
Merged

style(p2p): simplify pinger#165
mattsse merged 2 commits intomainfrom
matt/simplify-pinger

Conversation

@mattsse
Copy link
Collaborator

@mattsse mattsse commented Nov 4, 2022

This simplifies pinging drastically.

  • Interval for ping interval
  • Sleep for expected pong
  • sate to track current state of the pinger

This also gets rid of max missed pongs, imo we should terminate at first missed pong.
or is this protocol related or something that geth/erigon do @Rjected ?

@mattsse mattsse added the A-devp2p Related to the Ethereum P2P protocol label Nov 4, 2022
Copy link
Member

@Rjected Rjected left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The max missed pings part is not part of the protocol, this strategy is just something that akula does. We can differ, disconnecting after a single missed pong is much simpler and makes sense given the typical timeout parameters

@mattsse mattsse merged commit ca2b5ef into main Nov 4, 2022
@mattsse mattsse deleted the matt/simplify-pinger branch November 4, 2022 14:01
emhane pushed a commit to JoshdfG/reth that referenced this pull request Jan 5, 2026
JoshdfG pushed a commit to JoshdfG/reth that referenced this pull request Jan 16, 2026
emhane pushed a commit to JoshdfG/reth that referenced this pull request Jan 21, 2026
dhyaniarun1993 pushed a commit to dhyaniarun1993/reth that referenced this pull request Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-devp2p Related to the Ethereum P2P protocol

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants