Skip to content

Fix tune leaks - #1448

Merged
kurtmckee merged 2 commits into
mainfrom
fix-tune-leaks
Nov 7, 2026
Merged

kurtmckee merged 2 commits into
mainfrom
fix-tune-leaks

Conversation

@kurtmckee

Copy link
Copy Markdown
Member

Fixed

  • RequestsTransport.tune() and RetryConfig.tune() now restore the settings
    even if an exception is raised.

    Previously, an exception inside a tuned context
    (like with client.transport.tune(verify_ssl=False):)
    would leave the modified settings configured for subsequent requests.

@sirosen sirosen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Oy vey! 🤦

@kurtmckee
kurtmckee merged commit e81365e into main Nov 7, 2026
12 checks passed
@kurtmckee
kurtmckee deleted the fix-tune-leaks branch November 7, 2026 01:27
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