-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Sync stops after Network switch #4381
Comments
can you help to gather the needed info? What could trigger that? |
@the-hotmann which client are you using? |
@micbar @TheOneRing thanks for the swift response! I use the android client from the PlayStore in the latest version |
Thanks for reporting, will take a look inside. Connection is detected as lost in the middle of network switching and not resumed. In fact, connections are only resumed in case of connection recovery after outage. |
@jesmrec you're welcome! Thanks in advance! |
Sure. At this point, we'll need to check how deep the changes would be... but it deserves a look. |
We have an operating system restriction that causes the worker to be relaunched when it meets the requirements it has. In our case, it has a restriction to only execute if there is an internet connection. When we switch connections (from Wi-Fi to cellular), the operating system decides if there is a violation of the worker’s rules, as it might interpret this specific situation as a loss of connection rather than a network change. In any case, it is something beyond our control as it depends on the operating system. As a potential solution, we could include a manual retry in the worker’s catch block that only works when there is However, this would not completely solve the problem, as this condition might not be met for the following reason:
This possible solution would only work for workers: uploads and downloads. All other synchronization operations must be handled separately. On the other hand, we have a problem with the download worker. When we lose the connection, we receive a |
Describe the bug
When the network switches from WiFi to mobile while syncing, the syncing process will stop and needs to be manually started again to continue. This is not appreciated; it should resume automatically.
Steps to reproduce
Expected behavior
If the network I switched to is set/allowed to sync, it should resume automatically.
Actual behavior
It stops and needs to be resumed manually.
The text was updated successfully, but these errors were encountered: