Skip to content

Fix streaming sync retry backoff#70

Open
joshuabrink wants to merge 2 commits into
mainfrom
fix/streaming-sync-retry-backoff
Open

Fix streaming sync retry backoff#70
joshuabrink wants to merge 2 commits into
mainfrom
fix/streaming-sync-retry-backoff

Conversation

@joshuabrink
Copy link
Copy Markdown

This fixes reconnection loops on error responses.

The retry loop in StreamingSyncImplementation never waited before reconnecting when StreamingSyncIteration threw.

The await DelayRetry() call lived inside an iterationResult != null gate, and iterationResult is only assigned by a successful return from the iteration, so on the exception path the gate was always false and the loop reconnected immediately.

AI Usage

Claude used for generating tests cases. Verified initial issue and fix correctness.

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