Skip to content

feat(retry): retry pre-response connection resets on all methods (#118)#119

Merged
zfarrell merged 1 commit into
mainfrom
feat/connection-reset-retry
Jun 19, 2026
Merged

feat(retry): retry pre-response connection resets on all methods (#118)#119
zfarrell merged 1 commit into
mainfrom
feat/connection-reset-retry

Conversation

@zfarrell

Copy link
Copy Markdown
Contributor

Closes #118.

Configuration now defaults to a retry policy that transparently retries pre-response connection resets (stale pooled keep-alive connections) on every method including POST — safe because the reset happens before the request reaches the server, so a retry can't double-execute. Read timeouts and status retries stay idempotent-only, and an explicit retries= still overrides the default.

@zfarrell zfarrell force-pushed the feat/connection-reset-retry branch from 8ac6a39 to 0a62a1c Compare June 19, 2026 15:02

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Reviewed: _retry.py correctly extends urllib3's connection-error classification so pre-response resets retry on all methods (including POST) while read timeouts and status retries stay idempotent-only. The generated configuration.py and its mustache template are kept in sync, and .openapi-generator-ignore registers the new hand-maintained module. Test coverage is thorough — bug repro, all-methods fix, bounded exhaustion, timeout gating, detector units, and pool-args wiring. LGTM.

@zfarrell zfarrell merged commit f89af03 into main Jun 19, 2026
5 checks passed
@zfarrell zfarrell deleted the feat/connection-reset-retry branch June 19, 2026 15:05
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.

Transparently retry pre-response connection resets (stale keep-alive) on all methods, incl. POST

1 participant