]> granicus.if.org Git - python/commit
bpo-33674: asyncio: Fix SSLProtocol race (GH-7175) (GH-7188)
authorVictor Stinner <vstinner@redhat.com>
Tue, 29 May 2018 04:46:48 +0000 (06:46 +0200)
committerYury Selivanov <yury@magic.io>
Tue, 29 May 2018 04:46:48 +0000 (00:46 -0400)
commit7593b8a5075ff45d71be9f62980be6a9c005afa9
tree1482dfae8b48c287fc58ea0616f6b60393877a01
parent325320d5f5a4480a6f4f92dcf86b9dbb7eb5c791
bpo-33674: asyncio: Fix SSLProtocol race (GH-7175) (GH-7188)

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 be00a5583a2cb696335c527b921d1868266a42c6)
Lib/asyncio/sslproto.py
Misc/NEWS.d/next/Library/2018-05-28-22-49-59.bpo-33674.6LFFj7.rst [new file with mode: 0644]