diff options
author | Victor Stinner <vstinner@python.org> | 2019-10-16 00:36:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-16 00:36:42 (GMT) |
commit | fab4ef2df0857ab0c97f3058ac5ec3280c4eb891 (patch) | |
tree | 8eff1ae44b5dc6c01c3570253797819c7f736f63 /Misc | |
parent | 3f36043db22361500f52634f2b8de49dde0e7da9 (diff) | |
download | cpython-fab4ef2df0857ab0c97f3058ac5ec3280c4eb891.zip cpython-fab4ef2df0857ab0c97f3058ac5ec3280c4eb891.tar.gz cpython-fab4ef2df0857ab0c97f3058ac5ec3280c4eb891.tar.bz2 |
bpo-35998: Fix test_asyncio.test_start_tls_server_1() (GH-16815)
main() is now responsible to send the ANSWER, rather than
ServerProto. main() now waits until it got the HELLO before sending
the ANSWER over the new transport.
Previously, there was a race condition between main() replacing the
protocol and the protocol sending the ANSWER once it gets the HELLO.
TLSv1.3 was disabled for the test: reenable it.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Tests/2019-10-16-01-36-15.bpo-35998.G305Bf.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2019-10-16-01-36-15.bpo-35998.G305Bf.rst b/Misc/NEWS.d/next/Tests/2019-10-16-01-36-15.bpo-35998.G305Bf.rst new file mode 100644 index 0000000..43d3942 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2019-10-16-01-36-15.bpo-35998.G305Bf.rst @@ -0,0 +1,5 @@ +Fix a race condition in test_asyncio.test_start_tls_server_1(). Previously, +there was a race condition between the test main() function which replaces the +protocol and the test ServerProto protocol which sends ANSWER once it gets +HELLO. Now, only the test main() function is responsible to send data, +ServerProto no longer sends data. |