From e155ba44bbf29209a496862d8cae3c145ff1bd2b Mon Sep 17 00:00:00 2001 From: yhirose Date: Mon, 19 Oct 2020 15:22:43 -0400 Subject: [PATCH] Fix #706 --- httplib.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/httplib.h b/httplib.h index be1ac63..bef0ceb 100644 --- a/httplib.h +++ b/httplib.h @@ -5856,9 +5856,12 @@ inline bool SSLServer::process_and_close_socket(socket_t sock) { }); detail::ssl_delete(ctx_mutex_, ssl, ret); + detail::shutdown_socket(sock); + detail::close_socket(sock); return ret; } + detail::shutdown_socket(sock); detail::close_socket(sock); return false; }