Skip to content

Commit

Permalink
Fix #1997
Browse files Browse the repository at this point in the history
  • Loading branch information
yhirose committed Dec 3, 2024
1 parent 51dee79 commit 0c30a1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions httplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -7438,7 +7438,9 @@ inline bool ClientImpl::send_(Request &req, Response &res, Error &error) {

#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
if (is_alive && is_ssl()) {
detail::set_nonblocking(socket_.sock, true);
if (is_ssl_peer_could_be_closed(socket_.ssl)) { is_alive = false; }
detail::set_nonblocking(socket_.sock, false);
}
#endif

Expand Down

0 comments on commit 0c30a1e

Please sign in to comment.