Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Jun 22, 2023

@vstinner
Copy link
Member Author

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 free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants