mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-10 01:33:53 +00:00
SSL_shutdown() only if not already closed by remote (#413)
This commit is contained in:
parent
992f3dc690
commit
1ccddd1b0b
@ -4467,7 +4467,9 @@ inline bool process_and_close_socket_ssl(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SSL_shutdown(ssl);
|
if (ret) {
|
||||||
|
SSL_shutdown(ssl); // shutdown only if not already closed by remote
|
||||||
|
}
|
||||||
{
|
{
|
||||||
std::lock_guard<std::mutex> guard(ctx_mutex);
|
std::lock_guard<std::mutex> guard(ctx_mutex);
|
||||||
SSL_free(ssl);
|
SSL_free(ssl);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user