Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use wait_closed with asyncio, with socket unwrapping workaround. #84

Closed
wants to merge 3 commits into from

Conversation

tomchristie
Copy link
Member

@tomchristie tomchristie commented May 12, 2020

Proposal for working around https://bugs.python.org/issue39758 and addressing resulting bugs such as encode/httpx#825 and encode/httpx#914

Really we ought to be calling .wait_closed on closing sockets in asyncio, but we've not been able to because of a bug in cpython that can cause it to hang indefinitely on SSL termination. A workaround here is to explicitly deal with the socket unwrapping ourselves.

I've issued this as a draft PR since at the very least it'd need some verification.

@tomchristie tomchristie marked this pull request as draft May 12, 2020 15:30
@florimondmanca
Copy link
Member

I think this got superseded by #167? Closing then…

@florimondmanca florimondmanca deleted the asyncio-wait-closed branch December 7, 2020 20:31
Sign up for free to 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.

None yet

2 participants