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

P2P socket termination errors #3883

Closed
bertiespell opened this issue Jul 8, 2020 · 2 comments
Closed

P2P socket termination errors #3883

bertiespell opened this issue Jul 8, 2020 · 2 comments
Assignees

Comments

@bertiespell
Copy link
Contributor

Expected Behavior

When peer-A terminates a socket connection with peer-B, then peer-B should log message once and move on.

Current Behavior

This bug was discovered when attempting to sync v3 with devnet (with two v3 peers connected). When peer-A terminates a socket from peer-B, the following error continues to log, and appears to block node from moving on:

DEBUG: Socket error (peer 127.0.0.1) : Connection terminated while waiting to connect

Steps to Reproduce (for bugs)

  • Connect peer A
  • Connect peer B
  • Terminate socket from A
  • Notice repeated errors in B
@sebastijankuzner sebastijankuzner self-assigned this Jul 9, 2020
@sebastijankuzner
Copy link
Contributor

Log is present, because peer is still in the list of known peers. In my opinion it is good behavior, if node tries to connect to another peer multiple times and log every time the connection was not successful.

@air1one Maybe we can just remove the peer after some time if it is not responding of after x attempts to reconnect. In other way the nodes from peer list defined in configurations can always stay in the list.

@air1one
Copy link
Contributor

air1one commented Jul 9, 2020

Yeah I agree @sebastijankuzner let's remove the peer after X attempts to reconnect. 2 or 3 attempts should be enough to give up and remove the peer 🤔

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

No branches or pull requests

3 participants