syncthing-lite
syncthing-lite copied to clipboard
Non-local initial discovery doesn't work
While investigating #139 I bumped into this one, and thought it was worth reporting.
Steps to demostrate and reproduce:
- Have Android Studio installed and Android Emulator set up.
- Create a new AVD of a known configuration working with ST-lite.
- Nexus 6P running Android 8.0 (API level 27) should do.
- Run the AVD in emulator.
- Download fresh ST-lite APK (from F-Droid) and install it in emulator (drag-n-drop works).
- Run ST-lite in the emulator.
- Manually feed ST-lite and ID of an ST-instance you control and know is running.
- Your local machine's ST should do.
- Wait for however long you feel necessary to persuade you there is an issue, observe "no known address for device" not going anywhere.
- 17 hours for me, your mileage may vary,
- optionally, you may force-stop and restart ST-lite several times just for the sake of it; makes no difference.
- Download fresh ST-android APK (from F-Droid) and install it into your running emulator.
- Run ST-android in emulator. Manually feed it the same ID of the instance you use for testing.
- Observe ST-android getting working connection to remote instance in under a minute.
- Switch back to ST-lite. Observe it finally getting connection too.
- Uninstall ST-android from emulator.
- Proceed with your ST-lite debugging as intended.
My point is, steps 7-12 should not be necessary, but I can reliably reproduce the fact that they are.
Is restarting (force stop or wait one minute? after leaving ti) syncthing lite enough to get a connection?
Nope.