Skip to content

Commit

Permalink
transport: Reject secondary connections with different connection IDs (
Browse files Browse the repository at this point in the history
…#176)

This PR ensures that the transport manager rejects secondary
connections.

When the secondary connection is rejected, the internal `dial_record` is
preserved.

Added a test to validate this behavior, with multiple wrong endpoints.

Part of: #172
Will keep the issue opened for to further into it. 

cc @paritytech/networking

---------

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
  • Loading branch information
lexnv authored Jul 31, 2024
1 parent fc8792d commit 171e36a
Show file tree
Hide file tree
Showing 3 changed files with 299 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/transport/manager/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub struct AddressRecord {
/// Address.
address: Multiaddr,

/// Connection ID, if specifed.
/// Connection ID, if specified.
connection_id: Option<ConnectionId>,
}

Expand Down
Loading

0 comments on commit 171e36a

Please sign in to comment.