Skip to content

TransportManager: Improve the efficiency of propagating dial failure messages #409

@lexnv

Description

@lexnv

The transport manager propagates the InnerTransportEvent::DialFailure event together with the multiaddress to all installed protocols. In older versions of litep2p, the address was not propagated. However, we needed to have an eventually consistent address store in kademlia for optimization and consistency purposes.

match context.tx.try_send(InnerTransportEvent::DialFailure {
peer,
addresses: vec![address.clone()],

We can improve the propagation of messages by propagating the addresses only to the kademlia handler. The other protocols could leave without knowing which address has failed (there was no change made that takes the address into account for other protocols).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions