-
Notifications
You must be signed in to change notification settings - Fork 43
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
Future Improvements for ConnectionManager #1189
Comments
Note on
would be good to understand the needs. Talk to current platforms. Is the need mainly to debug/dog food peer exchange? |
Steps taken through waku-org/examples.waku.org#219:
Findings:
Imo, according to the above findings, it is safe to keep the code as it is -
cc @fryorcraken |
According to libp2p/js-libp2p#744:
by this logic, it should be okay to only have the libp2p ping and remove the relay but as mentioned, it needs to be tested against different transports.
|
All good findings. You can disable relay ping in the API. I agree with using ping to detect disconnection. Maybe we could emit an event upon ping failure to start going in this direction. And also an event upon ping reconnection. This can then be the basis to have automated behaviour such as checking filter subscriptions or attempting store query after reconnection |
Thanks for the investigation. This is annoying because we basically spam the network with relay ping messages when they don't need to be relayed. Next step I suggest: open an issue to investigate why we need relay pings and understand if there's any other way to do it. after 10min, does message sending AND receiving start failing or does only receiving fails? |
possibly related with #1403 |
Regarding gauging peer disconnections: |
Closing this issue in favour of separately tracked issues for two items |
With #1135, the
ConnectionManager
module was introduced.This issue intends to track future/iterative work around the same.
TODO:
write a spec testtracked here: Introduce a spec test for ConnectionManager #1413add functionality to dial all available bootstrap peers if no PX peers are dialable after N secondsaction the findings of-> tracked here (re)investigate gauging peer disconnections with js-waku #1412peer:disconnect
investigationpeer:disconnect
issues described in-line in codeadd regular logs for available/connected nodesconfirm if the relay
keep-alive
pings are still neededThe text was updated successfully, but these errors were encountered: