Skip to content

Conversation

@vstinner
Copy link
Member

@vstinnervstinner commented Jun 22, 2023

@vstinner
Copy link
MemberAuthor

I started hacking _ssl.c to use a strong reference, but the code is more complicated than what I expected. GET_SOCKET() returns NULL if there is no socket, None is the weak reference is dead, or a borrowed reference to the socket otherwise. It's not easy to migrate the code to strong references. So I only changed GET_SOCKET() but it still returns a borrowed reference.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@vstinner@bedevere-bot