Skip to content

Fix tight-loop retry on H2 INTERNAL_ERROR in datacap stream reconnect#394

Merged
myleshorton merged 2 commits intomainfrom
auto-fix/ticket-171798
Apr 2, 2026
Merged

Fix tight-loop retry on H2 INTERNAL_ERROR in datacap stream reconnect#394
myleshorton merged 2 commits intomainfrom
auto-fix/ticket-171798

Conversation

@myleshorton
Copy link
Copy Markdown
Contributor

Root cause: backoff reset threshold was 30s, below server 60s timeout. Fix: raise to 90s. Auto-diagnosed from Freshdesk ticket 171798.

Auto-diagnosed from Freshdesk ticket #171798.
Root cause: server sends RST_STREAM INTERNAL_ERROR on 60s timeout;
client retried immediately with no backoff, causing error storm.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@myleshorton myleshorton marked this pull request as ready for review April 2, 2026 19:19
Copilot AI review requested due to automatic review settings April 2, 2026 19:19
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts the DataCap SSE reconnect backoff reset threshold to prevent rapid reconnect loops when the server drops the stream around its timeout window.

Changes:

  • Increased the backoff reset threshold from 30s to 90s in DataCapStream so connections that consistently die around ~60s don’t continuously reset backoff and reconnect immediately.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Address PR review: replace magic 90s literal with a named constant
and document why it must exceed the server's ~60s SSE idle timeout.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@myleshorton myleshorton merged commit 3ad0ed3 into main Apr 2, 2026
2 checks passed
@myleshorton myleshorton deleted the auto-fix/ticket-171798 branch April 2, 2026 19:25
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.

2 participants