Skip to content

gh-140795: Keep 'err' in local variable in _ssl.c#143275

Merged
colesbury merged 1 commit intopython:mainfrom
colesbury:gh-140795-ssl-err
Dec 31, 2025
Merged

gh-140795: Keep 'err' in local variable in _ssl.c#143275
colesbury merged 1 commit intopython:mainfrom
colesbury:gh-140795-ssl-err

Conversation

@colesbury
Copy link
Contributor

@colesbury colesbury commented Dec 29, 2025

The error return code doesn't need to be mutable state on the SSLSocket. This simplifies thread-safety and avoids potential reentrancy issues.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news type-refactor Code refactoring (with no changes in behavior)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants