rust-libp2p icon indicating copy to clipboard operation
rust-libp2p copied to clipboard

Behavior Upgrade similar to Connection Upgrade performed via DCUtR

Open canewsin opened this issue 2 years ago • 1 comments

Is Behavior Upgrade Possible After Peer Connection is Established ?

With Current code logic swarm depends predefined network behavior before peer connection, Some times different clients have different feature sets based on their hardware capabilities, EitherBehavior might not work in all such cases, instead I would like to see Behavior Upgrade Possibility after similar to Connection Upgrade, even though they are not similar, I am just curious whether It could be possible with current code base.

This is because, I feel increase in Behavior Payload may lead to unsuccessful hole punch attempts, even though devices capable of doing such things with Light Behavior.

This could also help cross device/version communicational behavior upgrades i.e. bluetooth may not be supported by all clients.

May be Related : https://github.com/libp2p/rust-libp2p/issues/2590

canewsin avatar Mar 26 '22 09:03 canewsin

This is because, I feel increase in Behavior Payload may lead to unsuccessful hole punch attempts, even though devices capable of doing such things with Light Behavior.

I think we should solve this issue directly, instead of providing an "upgrade" mechanism for NetworkBehaviours.

mxinden avatar Apr 05 '22 19:04 mxinden

Closing as stale.

thomaseizinger avatar Sep 20 '23 02:09 thomaseizinger