You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Syncing zero byte files fails will protocol error (on the sending side).
The root cause is that Syncthing (of all current versions) actually sends requests for zero-sized blocks, which was unexpected to me. Syncthing 2.1.0 (incorrectly) rejects these requests as nonsensical.
Syncthing version
v2.1.0
Platform & operating system
all
Browser version
No response
Relevant log output
2026-05-25 14:40:32 INF Lost device connection (kind=secondary device=MRIW7OK connection=127.0.0.1:22001-127.0.0.1:53906/tcp-server/TLS1.3-TLS_AES_128_GCM_SHA256/LAN-P10-65IPTGI5KVNVGEULC5V1I58TLE error="protocol error on request for \"foo\" in default: request size 0 too small" remaining=2 log.pkg=model)
Zero-size requests are also sent by Synctrain prior to v2.6, to test latency to a peer.
For anyone having issues with Synctrain and Syncthing v2.1 intermittently disconnecting: upgrade to Synctrain 2.6 or higher (currently on TestFlight and awaiting app review), or to the future Syncthing version that will have this fix merged, or downgrade Syncthing to pre-v2.1.
Activity
fix(protocol): handle zero-size requests (fixes syncthing#10709) (syn…
pixelspark commentedon May 25, 2026
Zero-size requests are also sent by Synctrain prior to v2.6, to test latency to a peer.
For anyone having issues with Synctrain and Syncthing v2.1 intermittently disconnecting: upgrade to Synctrain 2.6 or higher (currently on TestFlight and awaiting app review), or to the future Syncthing version that will have this fix merged, or downgrade Syncthing to pre-v2.1.
Merge branch 'main' into db-drop-dev-vs-index
[codex] Merge upstream stable v2.1.1 into main (#23)