8000 bpo-35031: Fix test_start_tls_server_1 on FreeBSD buildbots (GH-10011) · python/cpython@3f9fe53 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3f9fe53

Browse files
bpo-35031: Fix test_start_tls_server_1 on FreeBSD buildbots (GH-10011)
Some FreeBSD buildbots fail to run this test as the eof was not being received by the server if the size is not big enough. This behaviour only appears if the client is using TLS1.3. (cherry picked from commit f6a47f3) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
1 parent 5f4d05d commit 3f9fe53

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Lib/test/test_asyncio/test_sslproto.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import logging
44
import socket
5+
import sys
56
import unittest
67
from unittest import mock
78
try:
@@ -426,6 +427,12 @@ def test_start_tls_server_1(self):
426427

427428
server_context = test_utils.simple_server_sslcontext()
428429
client_context = test_utils.simple_client_sslcontext()
430+
if sys.platform.startswith('freebsd'):
431+
# bpo-35031: Some FreeBSD buildbots fail to run this test
432+
# as the eof was not being received by the server if the payload
433+
# size is not big enough. This behaviour only appears if the
434+
# client is using TLS1.3.
435+
client_context.options |= ssl.OP_NO_TLSv1_3
429436

430437
def client(sock, addr):
431438
sock.settimeout(self.TIMEOUT)

0 commit comments

Comments
 (0)
0