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

Method do_close

boost-http/http-client.cpp:167–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 }
166
167 void do_close() {
168 beast::error_code error;
169 if (stream_.socket().shutdown(tcp::socket::shutdown_both, error)) {
170 LOG(ERROR) << "failed to close http socket: " << error.message();
171 }
172 self_ = nullptr;
173 }
174
175 void fail(const char *what, beast::error_code ec) {
176 LOG(ERROR) << "failed http client: " << what << ": " << ec.message();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected