yhirose %!s(int64=5) %!d(string=hai) anos
pai
achega
e155ba44bb
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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::shutdown_socket(sock);
+    detail::close_socket(sock);
     return ret;
   }
 
+  detail::shutdown_socket(sock);
   detail::close_socket(sock);
   return false;
 }