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

(re)investigate gauging peer disconnections with js-waku #1412

Closed
danisharora099 opened this issue Jun 30, 2023 · 3 comments
Closed

(re)investigate gauging peer disconnections with js-waku #1412

danisharora099 opened this issue Jun 30, 2023 · 3 comments
Assignees
Labels
bug Something isn't working E:2.1: Production testing of existing protocols See https://github.com/waku-org/pm/issues/49 for details

Comments

@danisharora099
Copy link
Collaborator

danisharora099 commented Jun 30, 2023

Problem

There have been attempts in gauging peer disconnections properly through peer:disconnect event listeners and the IPFS ping protocol.
Some of the efforts are tracked here: #1189

Proposed Solutions

Understand how different events are emitted in context to disconnections.

With the release of libp2p 0.45.x, it might be worth it to attempt the investigation keeping in consideration the connection:close and peer:disconnect handlers exposed: https://github.com/libp2p/js-libp2p/blob/70fe699c424c22f81e39c47631fda73abc1cae9e/doc/migrations/v0.44-v0.45.md?plain=1#L143

Notes

@danisharora099
Copy link
Collaborator Author

Blocked by libp2p/js-libp2p#1904 and #1415

@danisharora099 danisharora099 added the blocked This issue is blocked by some other work label Jul 27, 2023
@weboko
Copy link
Collaborator

weboko commented Jul 31, 2023

Shouldn't be blocked anymore?

@danisharora099 danisharora099 removed the blocked This issue is blocked by some other work label Aug 1, 2023
@weboko weboko self-assigned this Sep 4, 2023
@weboko weboko moved this from Priority to In Progress in Waku Sep 4, 2023
@fryorcraken fryorcraken added bug Something isn't working E:2.1: Production testing of existing protocols See https://github.com/waku-org/pm/issues/49 for details labels Sep 21, 2023
@danisharora099
Copy link
Collaborator Author

upon further investigation and taking into context previous findings, it's safe to conclude:

  • connection:close: monitor a permanent connection close between the local & remote node (which should usually be triggered along with peer:disconnect for cases where we only have one connection with the remote node)
  • peer:disconnect: monitor permanent disconnections with peers (this would imply not that no the underlying connection(s) have been permanently closed, and the only way to communicate with this peer again is to open a new connection/reconnect)
  • pings will fail when there are temporary network degradations or reachability issues. this does not mean that the underlying connection has been closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working E:2.1: Production testing of existing protocols See https://github.com/waku-org/pm/issues/49 for details
Projects
Archived in project
Development

No branches or pull requests

3 participants