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

Method fail

boost-http/http-client.cpp:175–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173 }
174
175 void fail(const char *what, beast::error_code ec) {
176 LOG(ERROR) << "failed http client: " << what << ": " << ec.message();
177 if (!sent_answer_) {
178 sent_answer_ = true;
179 payload_completed_ = true;
180 callback_->receive_answer(502, "text/plain", {}, "", true);
181 } else if (!payload_completed_) {
182 payload_completed_ = true;
183 callback_->receive_payload_part("", true);
184 }
185 do_close();
186 }
187
188 private:
189 tcp::resolver resolver_;

Callers

nothing calls this directly

Calls 2

receive_answerMethod · 0.45
receive_payload_partMethod · 0.45

Tested by

no test coverage detected