This commit is contained in:
Kukodam authored and GitHub committed 2026-04-13 20:32:04 -04:00
1 parent b045ee7f6b
commit 9f52821be6
2 files changed
+43

No files matched your search

+3
View File
@@ -16766,6 +16766,9 @@ inline ssize_t read(session_t session, void *buf, size_t len, TlsError &err) {
auto ssl_err = SSL_get_error(ssl, ret);
err.code = impl::map_ssl_error(ssl_err, err.sys_errno);
if (err.code == ErrorCode::PeerClosed) {
return 0;
} // Gracefully handle the peer closed state.
if (err.code == ErrorCode::Fatal) { err.backend_code = ERR_get_error(); }
return -1;
}