Skip to content

Conversation

@colesbury
Copy link
Contributor

@colesburycolesbury 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.

The error return code doesn't need to be mutable state on the SSLSocket. This simplifes thread-safety and avoids potential reentrancy issues.
@colesburycolesbury added skip news type-refactor Code refactoring (with no changes in behavior) labels Dec 29, 2025
@colesburycolesbury marked this pull request as ready for review December 29, 2025 18:08
@colesbury
Copy link
ContributorAuthor

The motivation here is to refactor out shared state so that we can remove some of the SSLSocket locks.

Copy link
Member

@picnixzpicnixz left a comment

Choose a reason for hiding this comment

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

Yeah I don't know why self->err is carried over actually.

@colesburycolesbury merged commit 96ab379 into python:mainDec 31, 2025
54 checks passed
@colesburycolesbury deleted the gh-140795-ssl-err branch December 31, 2025 00:45
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip newstype-refactorCode refactoring (with no changes in behavior)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@colesbury@gpshead@picnixz