Skip to content

Commit

Permalink
OpenSSL 3.2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
danigm committed Jan 15, 2024
1 parent 65a9e48 commit 60beec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tornado/iostream.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 60beec8

Please sign in to comment.