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

fix: prevent duplicate connections to multiaddr #2734

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Sep 29, 2024

  1. fix: prevent duplicate connections to multiaddr

    After opening a new connection, check if there is an existing connection
    to the same peer. If the existing connection is not limited or the new
    connection is also limit, return the existing connection.
    
    This will prevent multiple connections to the same peer in cases where
    the multiaddr being dialed does not contain a peer id.
    tabcat committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    9156383 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2024

  1. test: prevent duplicate connections to multiaddr

    Checks that the dialer is returning existing connections to the same
    peer when given a multiaddr without a peer id.
    tabcat committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    d627b12 View commit details
    Browse the repository at this point in the history