Multiple transport support with fallbacks #5658
-
Hi all! 👋 I've been playing around with When my peer listens on multiple multiaddresses, it naturally sends all of them during the mDNS discovery phase. This means that in the Ideally, I'd like to specify an order of transports to try for communication, so only one is tried at a time and the next is used only as a fallback in case the first one didn't work. Is it somehow supported and I just missed it? Is it specific to this protocol only? Or should I rather handle the dialing myself to make sure only one transport is used to establish a connection with the peer? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
That seems...odd. If you establish multiple ”physical“(tcp or udp) connection, multiple handlers will be created for each of these connections, but the behaviour itself should only notify one of the handlers(via |
Beta Was this translation helpful? Give feedback.
That seems...odd. If you establish multiple ”physical“(tcp or udp) connection, multiple handlers will be created for each of these connections, but the behaviour itself should only notify one of the handlers(via
NotifyHandler::Any
) and thus no duplicate message will be sent through different connections(or transports).