From 60beec81ed5771743a34aa53e510b93e8dbb3595 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Moreno Date: Mon, 15 Jan 2024 09:48:00 +0100 Subject: [PATCH] OpenSSL 3.2 compatibility Fix https://github.com/tornadoweb/tornado/issues/3355 --- tornado/iostream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/iostream.py b/tornado/iostream.py index bd001aeeb1..ee5775932e 100644 --- a/tornado/iostream.py +++ b/tornado/iostream.py @@ -1374,7 +1374,7 @@ def _do_ssl_handshake(self) -> None: return elif err.args[0] in (ssl.SSL_ERROR_EOF, ssl.SSL_ERROR_ZERO_RETURN): return self.close(exc_info=err) - elif err.args[0] == ssl.SSL_ERROR_SSL: + elif err.args[0] in (ssl.SSL_ERROR_SSL, ssl.SSL_ERROR_SYSCALL): try: peer = self.socket.getpeername() except Exception: