MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / close

Method close

boost-http/http.cpp:315–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313 }
314
315 void close() {
316 beast::error_code error;
317 if (stream_.socket().shutdown(tcp::socket::shutdown_send, error).failed()) {
318 LOG(ERROR) << "failed to close http socket: " << error.message();
319 }
320 self_ = nullptr;
321 }
322
323 private:
324 beast::tcp_stream stream_;

Callers 2

read_next_requestMethod · 0.95
send_headersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected