owncloud / android

:phone: The ownCloud Android App
GNU General Public License v2.0
3.77k stars 3.08k forks source link

Sync stops after Network switch #4381

Open the-hotmann opened 2 months ago

the-hotmann commented 2 months ago

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

  1. Start syncing.
  2. Switch networks.
  3. Realize it has stopped.

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.

```console $ /usr/bin/ocis version Version: 5.1.0-prealpha+52b00b116 Compiled: 2024-04-10 00:00:00 +0000 UTC ```

micbar commented 2 months ago

@TheOneRing @dragotin

can you help to gather the needed info? What could trigger that?

TheOneRing commented 2 months ago

@the-hotmann which client are you using?

the-hotmann commented 2 months ago

@micbar @TheOneRing thanks for the swift response!

I use the android client from the PlayStore in the latest version 4.2.1 (a41d1f917)

jesmrec commented 2 months ago

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.

the-hotmann commented 2 months ago

@jesmrec you're welcome! Can you please leep this thread up-to-date and inform us about your findings and eventual changes?

Thanks in advance!

jesmrec commented 2 months ago

Sure. At this point, we'll need to check how deep the changes would be... but it deserves a look.