Skip to content

Commit a5ddbfb

Browse files
bpo-35031, test_asycio: disable TLS 1.3 in test_start_tls_server_1() (GH-14148)
bpo-35031, bpo-35998: Reintroduce workaround on Windows and FreeBSD in test_start_tls_server_1() of test_asyncio: disable TLS v1.3 on the client context. (cherry picked from commit c034b78) Co-authored-by: Victor Stinner <vstinner@redhat.com>
1 parent 693945d commit a5ddbfb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Lib/test/test_asyncio/test_sslproto.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,12 @@ def test_start_tls_server_1(self):
498498

499499
server_context = test_utils.simple_server_sslcontext()
500500
client_context = test_utils.simple_client_sslcontext()
501+
if sys.platform.startswith('freebsd') or sys.platform.startswith('win'):
502+
# bpo-35031: Some FreeBSD and Windows buildbots fail to run this test
503+
# as the eof was not being received by the server if the payload
504+
# size is not big enough. This behaviour only appears if the
505+
# client is using TLS1.3.
506+
client_context.options |= ssl.OP_NO_TLSv1_3
501507
answer = None
502508

503509
def client(sock, addr):

0 commit comments

Comments
 (0)