diff --git a/openssl-3.2.patch b/openssl-3.2.patch new file mode 100644 index 0000000..03ea042 --- /dev/null +++ b/openssl-3.2.patch @@ -0,0 +1,13 @@ +Index: tornado-6.4/tornado/iostream.py +=================================================================== +--- tornado-6.4.orig/tornado/iostream.py ++++ tornado-6.4/tornado/iostream.py +@@ -1374,7 +1374,7 @@ class SSLIOStream(IOStream): + 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: diff --git a/python-tornado6.changes b/python-tornado6.changes index 389b080..55b207f 100644 --- a/python-tornado6.changes +++ b/python-tornado6.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 11 13:28:34 UTC 2024 - Daniel Garcia + +- Add patch openssl-3.2.patch gh#tornadoweb/tornado#3355 + ------------------------------------------------------------------- Wed Jan 3 10:27:22 UTC 2024 - Dirk Müller diff --git a/python-tornado6.spec b/python-tornado6.spec index a7200bf..58669c2 100644 --- a/python-tornado6.spec +++ b/python-tornado6.spec @@ -28,6 +28,8 @@ Source: https://files.pythonhosted.org/packages/source/t/tornado/tornado Source99: python-tornado6-rpmlintrc # PATCH-FIX-OPENSUSE ignore-resourcewarning-doctests.patch -- ignore resource warnings on OBS Patch0: ignore-resourcewarning-doctests.patch +# PATCH-FIX-OPENSUSE openssl-3.2.patch gh#tornadoweb/tornado#3355 +Patch1: openssl-3.2.patch BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module devel} BuildRequires: %{python_module pip}