diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-05-28 23:33:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-28 23:33:35 (GMT) |
commit | be00a5583a2cb696335c527b921d1868266a42c6 (patch) | |
tree | 4e744a9b3d1f6183dcefccdfff5b928d05961148 /Misc | |
parent | 8c1ad0c4f69390fded09012e1ed5242c45753bb4 (diff) | |
download | cpython-be00a5583a2cb696335c527b921d1868266a42c6.zip cpython-be00a5583a2cb696335c527b921d1868266a42c6.tar.gz cpython-be00a5583a2cb696335c527b921d1868266a42c6.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2018-05-28-22-49-59.bpo-33674.6LFFj7.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2018-05-28-22-49-59.bpo-33674.6LFFj7.rst b/Misc/NEWS.d/next/Library/2018-05-28-22-49-59.bpo-33674.6LFFj7.rst new file mode 100644 index 0000000..1e98680 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-05-28-22-49-59.bpo-33674.6LFFj7.rst @@ -0,0 +1,4 @@ +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. |