Skip to content
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

Connections dropped (and never re-dialed) after app goes to sleep #143

Closed
sandreae opened this issue Jun 4, 2024 · 1 comment
Closed
Labels
bug Something isn't working Rust / FFI

Comments

@sandreae
Copy link
Member

sandreae commented Jun 4, 2024

On launching the app and starting the embedded node any relay addresses are dialed, when connection succeeds discovery and replication mechanisms kick in. When the app is put to sleep then existing connections are dropped but when woken again relays or discovered remote peers are never re-dialed. A full app restart is required to initiate connections and start replicating again.

There are several issues in aqquadoggo repo relating to implementing redial strategies in the node. Maybe there's something relatively simple we could implement in app for restarting the embedded node when the app wakes, which would bring quite a big improvement to the UX.

@adzialocha adzialocha added bug Something isn't working Rust / FFI labels Jun 5, 2024
@sandreae
Copy link
Member Author

sandreae commented Jun 5, 2024

After this fix p2panda/aquadoggo#614 I am not seeing this behaviour anymore. Connections remain and replication continues when app is in the background. I suppose there must be a point where connections break/drop, but this will be dealt with in the existing aquadoggo issues regarding redialing peers so I will close this ticket now as it is not related directly to the meli app code.

@sandreae sandreae closed this as completed Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Rust / FFI
Projects
None yet
Development

No branches or pull requests

2 participants