Skip to content

feat: add connection retry support to v2 client#3

Merged
mhusbynflow merged 1 commit intomasterfrom
add-retries
Mar 9, 2026
Merged

feat: add connection retry support to v2 client#3
mhusbynflow merged 1 commit intomasterfrom
add-retries

Conversation

@mhusbynflow
Copy link
Copy Markdown
Collaborator

Large file uploads can fail partway through due to transient network issues. This adds automatic connection-level retries using httpx's built-in HTTPTransport(retries=N), which only retries on ConnectError and ConnectTimeout — cases where the TCP connection was never established, making it safe for all HTTP methods including POST.

Configurable via ClientConfig(connection_retries=N), defaulting to 3. Set to 0 to disable.

Large file uploads can fail partway through due to transient network
issues. This adds automatic connection-level retries using httpx's
built-in HTTPTransport(retries=N), which only retries on ConnectError
and ConnectTimeout — cases where the TCP connection was never
established, making it safe for all HTTP methods including POST.

Configurable via ClientConfig(connection_retries=N), defaulting to 3.
Set to 0 to disable.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mhusbynflow mhusbynflow merged commit c53c3f9 into master Mar 9, 2026
1 check passed
@mhusbynflow mhusbynflow deleted the add-retries branch March 9, 2026 10:07
@claude claude bot mentioned this pull request Mar 10, 2026
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