diff options
| author | Ćukasz Langa <lukasz@langa.pl> | 2023-08-24 10:09:30 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-24 10:09:30 (GMT) |
| commit | efb46e537eed203739e66dc2f131a27076cc23b3 (patch) | |
| tree | f22d271b9f4f0a80b988a967766ab76a48e10a08 /Python/pythonrun.c | |
| parent | 6f2b64f05195520cb4bd74cebeb37498294f0687 (diff) | |
| download | cpython-efb46e537eed203739e66dc2f131a27076cc23b3.zip cpython-efb46e537eed203739e66dc2f131a27076cc23b3.tar.gz cpython-efb46e537eed203739e66dc2f131a27076cc23b3.tar.bz2 | |
[3.8] gh-108342: Make ssl TestPreHandshakeClose more reliable (GH-108370) (#108408)
* In preauth tests of test_ssl, explicitly break reference cycles
invoving SingleConnectionTestServerThread to make sure that the
thread is deleted. Otherwise, the test marks the environment as
altered because the threading module sees a "dangling thread"
(SingleConnectionTestServerThread). This test leak was introduced
by the test added for the fix of issue gh-108310.
* Use support.SHORT_TIMEOUT instead of hardcoded 1.0 or 2.0 seconds
timeout.
* SingleConnectionTestServerThread.run() catchs TimeoutError
* Fix a race condition (missing synchronization) in
test_preauth_data_to_tls_client(): the server now waits until the
client connect() completed in call_after_accept().
* test_https_client_non_tls_response_ignored() calls server.join()
explicitly.
* Replace "localhost" with server.listener.getsockname()[0].
(cherry picked from commit 592bacb6fc0833336c0453e818e9b95016e9fd47)
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions
