Replies: 2 comments
-
As for To me, this mechanism would be redundant with |
Beta Was this translation helpful? Give feedback.
-
As for However note that some implementations of |
Beta Was this translation helpful? Give feedback.
-
A
NetworkBehaviour
may enter an error state and can not proceed in an orderly way. The current API contract provides no means to signal such a condition to the swarm which could then act appropriately. Instead ofpanic!
we may want to support more fine-grained ways to handle this, e.g. reset the state of the behaviour or terminate the swarm. One possibility would be to addNetworkBehaviourAction
constructors, e.g.ResetBehaviour
andTerminateSwarm
. When receiving aResetBehaviour
the swarm would provide the behaviour with the current peer information so it could clear its internal state and assume the given peers as connected. OnTerminateSwarm
the swarm would itself shutdown operation.Beta Was this translation helpful? Give feedback.
All reactions