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

multiple connections opened for the same peer #1459

Closed
Tracked by #914
danisharora099 opened this issue Aug 7, 2023 · 5 comments
Closed
Tracked by #914

multiple connections opened for the same peer #1459

danisharora099 opened this issue Aug 7, 2023 · 5 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 Aug 7, 2023

This is a support request

Problem

Instance:
js-waku is discovering the same peer, from two sources (possibly diff multiaddr?). Due to this, there are two dial requests, and websocket connections opening, for the same peer.

The first multiaddr comes from DNS Discovery, while the 2nd comes from parsing the multiaddr of the peer after its connection, and saving it in local storage for easier reconnection the next time.

Websocket URL 1: wss://node-01.gc-us-central1-a.wakuv2.prod.statusim.net:8000/p2p/16Uiu2HAmVkKntsECaYfefR1V2yCR79CegLATuTPE6B9TxgxBiiiA
Websocket URL 2: wss://node-01.gc-us-central1-a.wakuv2.prod.statusim.net:8000/

Screenshot 2023-08-07 at 4 56 39 PM Screenshot 2023-08-07 at 4 56 53 PM

Expected

js-waku should only open one websocket connection to one peer

@danisharora099
Copy link
Collaborator Author

should we move this issue as part of the peer management milestone, or out of scope for the first iteration of the milestone?
cc @fryorcraken

@fryorcraken
Copy link
Collaborator

I would add that to #914 yes

@weboko weboko moved this to To Do in Waku Aug 10, 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 and removed E:2023-peer-mgmt labels Sep 22, 2023
@danisharora099 danisharora099 self-assigned this Oct 10, 2023
@danisharora099 danisharora099 moved this from To Do to Priority in Waku Oct 10, 2023
@danisharora099 danisharora099 moved this from Priority to To Do in Waku Oct 11, 2023
@danisharora099
Copy link
Collaborator Author

moving this ticket to 'TODO' as it's already part of #914 which is priority/in progress

@danisharora099
Copy link
Collaborator Author

updates:

instead of this issue being tracked in #914, this should be a part of #1463:

  • individual discovery classes (PeerExchange and DNSDiscovery) already factor in no redials for the same peer.
  • The error originated since with the experiment of using peers from LocalStorage which does not have this control-check.
  • while unrelated to this particular issue, fix: don't dial discovered peers if have already been attempted dial #1657 should address dial of these peers for manual discovery processes, or through the use of waku.dial()
  • With work on feat: SDK for redundant usage of filter/lightpush #1463 where we should introduce the local storage module as a discovery class of sorts, or incorporate similar behaviour to control-check dial of peers that already exist in PeerStore

@fryorcraken fryorcraken moved this from To Do to Priority in Waku Oct 25, 2023
@chair28980
Copy link
Contributor

@danisharora099 please add this issue to #1463 items per discussion 2024-01-04

@chair28980 chair28980 moved this from Priority to Triage in Waku Jan 4, 2024
@github-project-automation github-project-automation bot moved this from Triage to Done in Waku Jan 9, 2024
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

4 participants