feat: purge peer connections and information #194
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Connections to a specific peer, or to all peers, can be closed and the peer information removed from the peer store. This can be useful to help determine if the presence/absence of a connection to a peer is affecting behavior. Be aware that purging a connection is inherently racey as it is possible for the peer to reestablish a connection at any time following a purge.
http://$RAINBOW_CTL_LISTEN_ADDRESS/mgr/purge?peer=<peer_id>
purges connection and info for peer identifid by peer_idhttp://$RAINBOW_CTL_LISTEN_ADDRESS/mgr/purge?peer=all
purges connections and info for all peershttp://$RAINBOW_CTL_LISTEN_ADDRESS/mgr/peers
returns a list of currently connected peersCloses #193