Skip to content

Commit 60beec8

Browse files
committed
OpenSSL 3.2 compatibility
Fix #3355
1 parent 65a9e48 commit 60beec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: tornado/iostream.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ def _do_ssl_handshake(self) -> None:
13741374
return
13751375
elif err.args[0] in (ssl.SSL_ERROR_EOF, ssl.SSL_ERROR_ZERO_RETURN):
13761376
return self.close(exc_info=err)
1377-
elif err.args[0] == ssl.SSL_ERROR_SSL:
1377+
elif err.args[0] in (ssl.SSL_ERROR_SSL, ssl.SSL_ERROR_SYSCALL):
13781378
try:
13791379
peer = self.socket.getpeername()
13801380
except Exception:

0 commit comments

Comments
 (0)