8000 [3.7] bpo-35031: Fix test_start_tls_server_1 on FreeBSD buildbots (GH-10011) by miss-islington · Pull Request #10496 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.7] bpo-35031: Fix test_start_tls_server_1 on FreeBSD buildbots (GH-10011) #10496

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 13, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
< 8000 input type="hidden" name="w" id="show_whitespace_lg" value="0" autocomplete="off" class="form-control" />
Diff view
7 changes: 7 additions & 0 deletions Lib/test/test_asyncio/test_sslproto.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import logging
import socket
import sys
import unittest
from unittest import mock
try:
Expand Down Expand Up @@ -426,6 +427,12 @@ def test_start_tls_server_1(self):

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

def client(sock, addr):
sock.settimeout(self.TIMEOUT)
Expand Down
0