Skip to content

2.1.0 fails to send/sync zero byte files #10709

Closed

Description

@calmh

What happened?

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)

Activity

  1. added theissue type on May 25, 2026
  2. added
    bug
    needs-triage
    and removed
    needs-triage
    on May 25, 2026
  3. added a commit that references this issue on May 25, 2026
    6be1ff8
  4. pixelspark commented on May 25, 2026

    @pixelspark
    Contributor

    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.

  5. added a commit that references this issue on Jun 4, 2026
    4eb00ab
  6. added a commit that references this issue on Jun 28, 2026
    a4dadaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions