I have been testing Syncthing for a few days - first thank you for a truly nice program that handles well a complicated distibuted problem.
Scenario: Laptop S77lx1 and Android S3Cym11 are on the same LAN They connected via local discovery. I turn off wlan on Android S3Cym11 Later: I turn on again wlan on Android S3Cym11
Result In both cases, the devices takes 5 minutes to reconnect.
The process When Android S3Cym11’s network changes from wlan to mobile data Laptop s77lx1’s log shows the following typical entries:
[ZRTMZ] 11:40:43 INFO: Connected to already connected device (5NCNIVS-…) [ZRTMZ] 11:41:51 INFO: Connected to already connected device (5NCNIVS-…) [ZRTMZ] 11:42:57 INFO: Connected to already connected device (5NCNIVS-…) [ZRTMZ] 11:44:10 INFO: Connected to already connected device (5NCNIVS-…) [ZRTMZ] 11:45:13 INFO: Connected to already connected device (5NCNIVS-…) [ZRTMZ] 11:45:52 INFO: Connection to 5NCNIVS-… closed: read timeout [ZRTMZ] 11:46:24 INFO: Established secure connection to 5NCNIVS-… at 192.168.112.101:22101-49.182.143.99:2197 (TCP (Server)) [ZRTMZ] 11:46:24 INFO: Device 5NCNIVS-… client is “syncthing v0.13.2” named “S3Cym11”
When Android S3Cym11’s network changes from mobile data back to wlan Laptop s77lx1’s log shows the following typical entries:
[ZRTMZ] 19:08:16 INFO: Connected to already connected device (5NCNIVS…) [ZRTMZ] 19:09:18 INFO: Connected to already connected device (5NCNIVS…) [ZRTMZ] 19:10:21 INFO: Connected to already connected device (5NCNIVS…) [ZRTMZ] 19:11:22 INFO: Connected to already connected device (5NCNIVS…) [ZRTMZ] 19:12:24 INFO: Connected to already connected device (5NCNIVS…) [ZRTMZ] 19:13:30 INFO: Connected to already connected device (5NCNIVS…) [ZRTMZ] 19:13:54 INFO: Connection to 5NCNIVS… closed: read timeout [ZRTMZ] 19:14:11 INFO: Established secure connection to 5NCNIVS… at 192.168.112.101:40384-192.168.112.102:22102 (TCP (Client)) [ZRTMZ] 19:14:11 INFO: Device 5NCNIVS… client is “syncthing v0.13.2” named “S3Cym11”
Configuration
- Laptop S77lx1 running Kubuntu 14.40, UFW disabled for testing, Syncthing v0.13.5. Sync Protocol Listen Addresses = tcp4://0.0.0.0:22101 , On the lan is has address 192.168.112.101
- Android S3Cym11 running Cyanogenmod, Syncthing v0.13.2. Sync Protocol Listen Addresses = tcp4://0.0.0.0:22102 , On the lan is has address 192.168.112.102
- In S77lx1, address of S3Cym11 is “dynamic”
- In S3Cym11, address of S77lx1, i tried both “dynamic” and a ddns address - Same Result.
- Router ports appropriately forwarded.
Sensitivity Notes The time to reconnect was the same whether:
- S3Cym11 was going onto or going off the Lan.
- there were changes made on S77lx1 or the S3Cym11 synced folders did not change.
Key Point / Question Seems there are two parameters, one about 60 seconds and one about 5 times that are used before a link is realised to be down and re-established. Can I alter these parameters?
I can see the parameter reconnectionIntervalS = 60s but that is for disconnected devices.
(ps: please excuse difficult to read formatting. bulleted lists and numbered lists dont seem to do line changes. All my end-of-lines disappear!)