yhirose 5 years ago
parent
commit
e155ba44bb
1 changed files with 3 additions and 0 deletions
  1. 3 0
      httplib.h

+ 3 - 0
httplib.h

@@ -5856,9 +5856,12 @@ inline bool SSLServer::process_and_close_socket(socket_t sock) {
         });
         });
 
 
     detail::ssl_delete(ctx_mutex_, ssl, ret);
     detail::ssl_delete(ctx_mutex_, ssl, ret);
+    detail::shutdown_socket(sock);
+    detail::close_socket(sock);
     return ret;
     return ret;
   }
   }
 
 
+  detail::shutdown_socket(sock);
   detail::close_socket(sock);
   detail::close_socket(sock);
   return false;
   return false;
 }
 }