bpo-33674: asyncio: Fix SSLProtocol race by vstinner · Pull Request #7175 · python/cpython

@vstinner

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.

1st1

1st1 approved these changes May 28, 2018

@vstinner

Create self._handshake_timeout_handle before calling
_process_write_backlog().

1st1 added a commit to MagicStack/uvloop that referenced this pull request

May 28, 2018

1st1 added a commit to MagicStack/uvloop that referenced this pull request

May 28, 2018

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

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)

Co-authored-by: Victor Stinner <vstinner@redhat.com>

ned-deily pushed a commit that referenced this pull request

May 29, 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)

Co-authored-by: Victor Stinner <vstinner@redhat.com>

1st1 pushed a commit that referenced this pull request

May 29, 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)

Olaf1022 pushed a commit to Olaf1022/Ultra-fast-asyncio that referenced this pull request

Aug 13, 2023