bpo-44011: Increase timeouts for asyncio SSL tests by asvetlov · Pull Request #25846 · python/cpython
Expand Up
@@ -179,7 +179,7 @@ async def wait_closed(self, obj):
def test_create_server_ssl_1(self):
CNT = 0 # number of clients that were successful
TOTAL_CNT = 25 # total number of clients that test will create
TIMEOUT = 10.0 # timeout for this test
TIMEOUT = 60.0 # timeout for this test
A_DATA = b'A' * 1024 * 1024 B_DATA = b'B' * 1024 * 1024 Expand Down Expand Up @@ -238,7 +238,7 @@ def prog(sock):
async def start_server(): extras = {} extras = dict(ssl_handshake_timeout=10.0) extras = dict(ssl_handshake_timeout=40.0)
srv = await asyncio.start_server( handle_client, Expand Down Expand Up @@ -303,7 +303,7 @@ def server(sock):
async def client(addr): extras = {} extras = dict(ssl_handshake_timeout=10.0) extras = dict(ssl_handshake_timeout=40.0)
reader, writer = await asyncio.open_connection( *addr, Expand Down Expand Up @@ -466,7 +466,7 @@ async def client(addr): *addr, ssl=client_sslctx, server_hostname='', ssl_handshake_timeout=10.0), ssl_handshake_timeout=40.0), 0.5)
with self.tcp_server(server, Expand Down Expand Up @@ -590,7 +590,7 @@ def client():
extras = {} if server_ssl: extras = dict(ssl_handshake_timeout=10.0) extras = dict(ssl_handshake_timeout=40.0)
f = loop.create_task( loop.connect_accepted_socket( Expand Down Expand Up @@ -1019,7 +1019,7 @@ async def run_main(): def test_create_server_ssl_over_ssl(self): CNT = 0 # number of clients that were successful TOTAL_CNT = 25 # total number of clients that test will create TIMEOUT = 10.0 # timeout for this test TIMEOUT = 60.0 # timeout for this test
A_DATA = b'A' * 1024 * 1024 B_DATA = b'B' * 1024 * 1024 Expand Down Expand Up @@ -1186,7 +1186,7 @@ def server(sock):
async def client(addr): extras = {} extras = dict(ssl_handshake_timeout=10.0) extras = dict(ssl_handshake_timeout=40.0)
reader, writer = await asyncio.open_connection( *addr, Expand Down
A_DATA = b'A' * 1024 * 1024 B_DATA = b'B' * 1024 * 1024 Expand Down Expand Up @@ -238,7 +238,7 @@ def prog(sock):
async def start_server(): extras = {} extras = dict(ssl_handshake_timeout=10.0) extras = dict(ssl_handshake_timeout=40.0)
srv = await asyncio.start_server( handle_client, Expand Down Expand Up @@ -303,7 +303,7 @@ def server(sock):
async def client(addr): extras = {} extras = dict(ssl_handshake_timeout=10.0) extras = dict(ssl_handshake_timeout=40.0)
reader, writer = await asyncio.open_connection( *addr, Expand Down Expand Up @@ -466,7 +466,7 @@ async def client(addr): *addr, ssl=client_sslctx, server_hostname='', ssl_handshake_timeout=10.0), ssl_handshake_timeout=40.0), 0.5)
with self.tcp_server(server, Expand Down Expand Up @@ -590,7 +590,7 @@ def client():
extras = {} if server_ssl: extras = dict(ssl_handshake_timeout=10.0) extras = dict(ssl_handshake_timeout=40.0)
f = loop.create_task( loop.connect_accepted_socket( Expand Down Expand Up @@ -1019,7 +1019,7 @@ async def run_main(): def test_create_server_ssl_over_ssl(self): CNT = 0 # number of clients that were successful TOTAL_CNT = 25 # total number of clients that test will create TIMEOUT = 10.0 # timeout for this test TIMEOUT = 60.0 # timeout for this test
A_DATA = b'A' * 1024 * 1024 B_DATA = b'B' * 1024 * 1024 Expand Down Expand Up @@ -1186,7 +1186,7 @@ def server(sock):
async def client(addr): extras = {} extras = dict(ssl_handshake_timeout=10.0) extras = dict(ssl_handshake_timeout=40.0)
reader, writer = await asyncio.open_connection( *addr, Expand Down