]> granicus.if.org Git - python/commit
bpo-33674: asyncio: Fix SSLProtocol race (GH-7175)
authorVictor Stinner <vstinner@redhat.com>
Mon, 28 May 2018 23:33:35 +0000 (01:33 +0200)
committerGitHub <noreply@github.com>
Mon, 28 May 2018 23:33:35 +0000 (01:33 +0200)
commitbe00a5583a2cb696335c527b921d1868266a42c6
tree4e744a9b3d1f6183dcefccdfff5b928d05961148
parent8c1ad0c4f69390fded09012e1ed5242c45753bb4
bpo-33674: asyncio: Fix SSLProtocol race (GH-7175)

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