Skip to content

Concurrent dials to the same peer with duplicated multiaddrs #3209

Description

@stormshield-pj50

Summary

Useless concurrent dials when a peer is found with two identical multiaddrs in the DHT: one with a peerid, and the other without a peerid.

Expected behaviour

When dialing a peer, identical multiaddrs (that only differ with the presence of the peerid) should be filtered out in order to prevent useless concurrent dials to the same peer.

Actual behaviour

Two identical mutliaddrs filled by the DHT:

/ip4/10.10.0.1/tcp/80
and
/ip4/10.10.0.1/tcp/80/QmXXXXXXXX

are concurrently dialed twice.

Possible Solution

Maybe check uniqueness of multiaddrs without peerid

Version

  • libp2p version (version number, commit, or branch): 0.49

Would you like to work on fixing this bug?

No

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions