Skip to content

Commit 3e86bdb

Browse files
authored
Fix #1997 (#2001)
1 parent c817d65 commit 3e86bdb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

httplib.h

+2
Original file line numberDiff line numberDiff line change
@@ -7438,7 +7438,9 @@ inline bool ClientImpl::send_(Request &req, Response &res, Error &error) {
74387438

74397439
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
74407440
if (is_alive && is_ssl()) {
7441+
detail::set_nonblocking(socket_.sock, true);
74417442
if (is_ssl_peer_could_be_closed(socket_.ssl)) { is_alive = false; }
7443+
detail::set_nonblocking(socket_.sock, false);
74427444
}
74437445
#endif
74447446

0 commit comments

Comments
 (0)