-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Networking MVP: Refactor + extend functionality #1353
Comments
Note that this was a previous requirement. Recently we have a proposed API change where service peers can be explicitly included in API calls for service protocols (implying that they must be managed/kept by the application). This would obsolete the
Related to previous comment, but perhaps worthwhile separating this idea between maintaining managed peers & maintaining connections (i.e. the conn manager should/could have some backup peer options when a connection dies)
Agree on both points, although (i) may just be "supports Waku" as a start.
Not sure I follow? Max peer connections is a nim-libp2p setting and peer disconnects are handled there and don't count towards the total connections. We've also registered a callback to handle disconnects on our side and update the state in the current Waku Peer Store.
Indeed. Mentioned before, but worthwhile to also look at what has been done for nimbus.
Yes! :)
Indeed. And this does indeed seem like you're considering connection management and peer management as logically separate (apologies for being unclear up to this point :D ). Sorting can be very naive in the beginning (what little we have of scoring, source, ability to connect, etc.) and then we just periodically prune the ones at the bottom when we reach capacity. |
Also cc @LNSD in terms of peer management design requirements from his POV. |
My initial thought was to have both
My bad, I'm refering to peer disconnections "on purpose". "triggering" instead of "handling". So disconnections that we explicitly perform, because i) we are no longer interested in that peer or ii) we reached the maximum connections and we want to connect to a given peer. Perhaps ii) is too specific.
Yep, I consider them as logically separate but right now I think they can go in the same module. |
@alrevuelta there seems to be only one TODO remaining. Is that accurate? When is the work planned? |
@fryorcraken The TODO was an old one, removing it. I can consider this as complete since it provides the functionalities that were planed. More peer management and improvements on networking will be added in the future, but they will be tracked with their own issue. |
Coming from #622.
Networking MVP Trackers
@jm-clius @kaiserd thoughts?
The text was updated successfully, but these errors were encountered: