Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented May 28, 2018

Fix a race condition in SSLProtocol.connection_made() of
asyncio.sslproto: start immediately the handshake instead of using
call_soon(). Previously, data_received() could be called before the
handshake started, causing the handshake to hang or fail.

(cherry picked from commit be00a55)

https://bugs.python.org/issue33674

Fix a race condition in SSLProtocol.connection_made() of
asyncio.sslproto: start immediately the handshake instead of using
call_soon(). Previously, data_received() could be called before the
handshake started, causing the handshake to hang or fail.

(cherry picked from commit be00a55)
@vstinner
Copy link
Member Author

@1st1: For the 3.6, there was a conflict, so I created this PR manually. Would you mind to double check that everything is fine?

At least, I would say that the fix is also needed for Python 3.6.

@1st1
Copy link
Member

1st1 commented May 28, 2018

The PR is LGTM. Timeout for handshake wasn't backported to 3.6 for some reason (probably because it's a new api)

@1st1 1st1 merged commit 7593b8a into python:3.6 May 29, 2018
@vstinner vstinner deleted the asyncio_tls36 branch May 29, 2018 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants