MCPcopy Create free account
hub / github.com/catboost/catboost / AbortOnFailedRequest

Function AbortOnFailedRequest

library/cpp/netliba/v6/udp_http.cpp:1269–1277  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

1267
1268 //////////////////////////////////////////////////////////////////////////
1269 void AbortOnFailedRequest(TUdpHttpResponse* answer) {
1270 if (answer && answer->Ok == TUdpHttpResponse::FAILED) {
1271 fprintf(stderr, "Failed request to host %s\n", GetAddressAsString(answer->PeerAddress).data());
1272 fprintf(stderr, "Error description: %s\n", answer->Error.data());
1273 fflush(nullptr);
1274 Y_ASSERT(0);
1275 abort();
1276 }
1277 }
1278
1279 TString GetDebugInfo(const TUdpAddress& addr, double timeout) {
1280 NHPTimer::STime start;

Callers 1

Calls 2

GetAddressAsStringFunction · 0.70
dataMethod · 0.45

Tested by

no test coverage detected