Skip to content

feat: allow configuring the synchronous FSA worker timeout - #1298

Merged
streamich merged 1 commit into
streamich:masterfrom
Firatakti:codex/fsa-sync-timeout
Sep 29, 2026
Merged

streamich merged 1 commit into
streamich:masterfrom
Firatakti:codex/fsa-sync-timeout

Conversation

@Firatakti

Copy link
Copy Markdown
Contributor

Closes #1228.

Synchronous FSA operations currently time out after 100 ms even when the underlying storage operation is still progressing. This prevents the 300–500 ms writes described in the issue from completing through the synchronous adapter.

This adds an optional timeout (milliseconds) to FsaNodeSyncAdapterWorker.start(url, dir, timeout) and forwards it to SyncMessenger. The default stays at 100 ms. The documentation shows how to increase it and notes that the calling thread remains blocked while waiting.

Five deterministic tests cover responses within the default limit, the unchanged default timeout, a response after 200 ms with a 500 ms timeout, exceeding the configured limit, and forwarding the setting through the worker adapter. A separate reproduction failed with Timeout on the unchanged base and passed after the fix.

Validation on Linux / Node.js 24.21.0:

  • yarn build
  • yarn typecheck
  • yarn prettier:check
  • yarn test: 100 suites passed; 1,618 tests passed, 17 skipped; 14 snapshots passed.

The legacy TSLint executable is not available in the current workspace installation. No browser end-to-end test was run.

AI assistance: implementation and tests were prepared with OpenAI Codex.

@streamich streamich left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@streamich
streamich merged commit d9cfa18 into streamich:master Sep 29, 2026
9 checks passed
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.

Add ability to increase duration before Timeout in FsaNodeSyncAdapterWorker

2 participants