Skip to content

Commit

Permalink
wsgi_test: Cap TLS version at 1.2
Browse files Browse the repository at this point in the history
On py310, tests may attempt to use TLS 1.3 which apparently doesn't like
the abrupt disconnect. Instead, it would complain:

    ssl.SSLEOFError: EOF occurred in violation of protocol
  • Loading branch information
tipabu committed Aug 19, 2021
1 parent ca28708 commit a5d9e9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/wsgi_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,8 @@ def wsgi_app(environ, start_response):
sock = eventlet.wrap_ssl(
eventlet.listen(('localhost', 0)),
certfile=certificate_file, keyfile=private_key_file,
server_side=True)
server_side=True,
ssl_version=ssl.PROTOCOL_TLSv1_2)
server_coro = eventlet.spawn(server, sock, wsgi_app, self.logfile)

client = eventlet.connect(('localhost', sock.getsockname()[1]))
Expand Down

0 comments on commit a5d9e9e

Please sign in to comment.