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

[3.6] bpo-33674: asyncio: Fix SSLProtocol race (GH-7175) #7188

Merged
merged 1 commit into from
May 29, 2018
Merged

[3.6] bpo-33674: asyncio: Fix SSLProtocol race (GH-7175) #7188

merged 1 commit into from
May 29, 2018

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.

None yet

4 participants