Skip to content

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

Closed
lovelydinosaur wants to merge 3 commits into
masterfrom
asyncio-wait-closed
Closed

lovelydinosaur wants to merge 3 commits into
masterfrom
asyncio-wait-closed

Conversation

@lovelydinosaur

@lovelydinosaur lovelydinosaur commented May 12, 2020 •

Copy link
Copy Markdown
Member

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.

@lovelydinosaur
lovelydinosaur marked this pull request as draft May 12, 2020 15:30
@florimondmanca

Copy link
Copy Markdown
Contributor

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

Development

Successfully merging this pull request may close these issues.

2 participants