Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

retry reading message with reconnect #7

Merged
merged 1 commit into from
Jan 8, 2024
Merged

retry reading message with reconnect #7

merged 1 commit into from
Jan 8, 2024

Conversation

boecklim
Copy link
Collaborator

@boecklim boecklim commented Jan 4, 2024

  • It can happen that the peer fails to read from a connection without retrying and reconnecting because of error use of closed network connection
  • Added retry mechanism with reconnecting for reading similar to writeRetry:

    go-p2p/Peer.go

    Line 490 in 866db61

    func (p *Peer) writeRetry(msg wire.Message) error {

@boecklim boecklim requested a review from icellan January 4, 2024 16:18
@boecklim boecklim merged commit 8e255ec into master Jan 8, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant