mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-24 12:04:40 +00:00
1 parent
c817d65695
commit
3e86bdb4d8
1 file changed
+2
@@ -7438,7 +7438,9 @@ inline bool ClientImpl::send_(Request &req, Response &res, Error &error) {
|
|||||||
|
|
||||||
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
|
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
|
||||||
if (is_alive && is_ssl()) {
|
if (is_alive && is_ssl()) {
|
||||||
|
detail::set_nonblocking(socket_.sock, true);
|
||||||
if (is_ssl_peer_could_be_closed(socket_.ssl)) { is_alive = false; }
|
if (is_ssl_peer_could_be_closed(socket_.ssl)) { is_alive = false; }
|
||||||
|
detail::set_nonblocking(socket_.sock, false);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user