MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / shutdown_ssl_impl

Method shutdown_ssl_impl

examples/server/httplib.h:8155–8166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8153}
8154
8155inline void SSLClient::shutdown_ssl_impl(Socket &socket,
8156 bool shutdown_gracefully) {
8157 if (socket.sock == INVALID_SOCKET) {
8158 assert(socket.ssl == nullptr);
8159 return;
8160 }
8161 if (socket.ssl) {
8162 detail::ssl_delete(ctx_mutex_, socket.ssl, shutdown_gracefully);
8163 socket.ssl = nullptr;
8164 }
8165 assert(socket.ssl == nullptr);
8166}
8167
8168inline bool
8169SSLClient::process_socket(const Socket &socket,

Callers

nothing calls this directly

Calls 1

ssl_deleteFunction · 0.85

Tested by

no test coverage detected