Skip to content

Retry initial-sync connections and directory syncs - #18

Merged
SteveIves merged 1 commit into
masterfrom
initial-sync-retries
Nov 20, 2026
Merged

SteveIves merged 1 commit into
masterfrom
initial-sync-retries

Conversation

@SteveIves

Copy link
Copy Markdown
Collaborator

Problem

During initial sync against a loaded VMS server, connections and operations could time out ("Socket read operation has timed out after 30000 milliseconds"). A failed directory was skipped with no retry, a failed worker connection could fail the whole initial sync, and a faulted DoneInitialSync task was never observed, surfacing later as "Unobserved task exception".

Changes

  • Connections used for the initial sync (directory creation and each worker) are retried up to 3 times with an increasing delay.
  • A worker that cannot connect drops out and the others drain the shared queue. If no worker connects and work remains, the initial sync fails with a clear error.
  • Each directory/pattern sync is retried up to 3 times, reconnecting first if the connection dropped. A final failure is still logged as an error.
  • The faulted-task case of DoneInitialSync is now observed so it no longer produces unobserved task exceptions. The failure is still reported where the initial sync is awaited.

Live-watch connections are unchanged.

Testing

SFTPSyncUI and SFTPSyncLib build with no warnings or errors. Not yet tested against a live server.

🤖 Generated with Claude Code

…neInitialSync faults.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@SteveIves
SteveIves merged commit 2ad8ae2 into master Nov 20, 2026
1 check passed
@SteveIves
SteveIves deleted the initial-sync-retries branch November 20, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant