]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
OpenSSL 3.2 compatibility 3357/head
authorDaniel Garcia Moreno <daniel.garcia@suse.com>
Mon, 15 Jan 2024 08:48:00 +0000 (09:48 +0100)
committerDaniel Garcia Moreno <daniel.garcia@suse.com>
Mon, 15 Jan 2024 08:48:00 +0000 (09:48 +0100)
Fix https://github.com/tornadoweb/tornado/issues/3355

tornado/iostream.py

index bd001aeeb1adbed77c5be5a90032cfe1d217c2aa..ee5775932e40abd115a79deb0c70cd95a80e9d84 100644 (file)
@@ -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: