Closed ramfox closed 6 years ago
@b5 plz halp
I'm having trouble with qri peers disconnect
. Is this meant to be a way to close your connection to a peer, so that the peer is essentially blocked? Or just close your explicit connection to it right now. Will this prevent automatically connecting to this peer in the future? Is this supposed to be temporary? If you close the connection, can the peer just re-open it using qri peers connect
?
It seems right now that you don't have to be connected to a peer in order for that peer to be connected to you. Which you mentioned, which seems like an error in libp2p.
But regardless, trying to understand the spirit of what qri peers disconnect
is supposed to be.
I'm worried it can read as a security function (block this peer, don't let it see my info/datasets), but I'm pretty sure that's not what it's supposed to do.
qri peers disconnect
is supposed to just close your explicit connection to a peer at that moment. In the future I think we should augment something akin to qri peers
with qri peers block
and qri peers unblock
, which implement the blocking semantics you're describing 🛩
And yes, it's a bug that connections are currently "one way", I'm hoping this will self-rectify when we upgrade our libp2p deps
Would love feedback/debate @b5 @dustmop @osterbit @rgardaphe
Would love a final review!
@dustmop @osterbit
Need approval by another core team member before I can merge :)
Let me know if there are any other issues or if I am good to gooooooo
🎉 🌮 🎉 🌮 🎉 🌮 🎉 🌮 🎉 🌮 🎉 🌮 🎉 🌮 🎉 🌮
List of commands, flags, and expected behavior