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

Method process_and_close_socket

examples/server/httplib.h:6182–6195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6180inline bool Server::is_valid() const { return true; }
6181
6182inline bool Server::process_and_close_socket(socket_t sock) {
6183 auto ret = detail::process_server_socket(
6184 svr_sock_, sock, keep_alive_max_count_, keep_alive_timeout_sec_,
6185 read_timeout_sec_, read_timeout_usec_, write_timeout_sec_,
6186 write_timeout_usec_,
6187 [this](Stream &strm, bool close_connection, bool &connection_closed) {
6188 return process_request(strm, close_connection, connection_closed,
6189 nullptr);
6190 });
6191
6192 detail::shutdown_socket(sock);
6193 detail::close_socket(sock);
6194 return ret;
6195}
6196
6197// HTTP client implementation
6198inline ClientImpl::ClientImpl(const std::string &host)

Callers

nothing calls this directly

Calls 7

process_server_socketFunction · 0.85
shutdown_socketFunction · 0.85
close_socketFunction · 0.85
ssl_newFunction · 0.85
ssl_deleteFunction · 0.85

Tested by

no test coverage detected