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

Function AbortOnFailedRequest

library/cpp/netliba/v12/udp_http.cpp:1420–1427  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1418
1419 //////////////////////////////////////////////////////////////////////////
1420 void AbortOnFailedRequest(TUdpHttpResponse* answer) {
1421 if (answer && answer->Ok == TUdpHttpResponse::FAILED) {
1422 printf("Failed request to host %s\n", GetAddressAsString(answer->PeerAddress).c_str());
1423 fflush(nullptr);
1424 Y_ASSERT(0);
1425 abort();
1426 }
1427 }
1428
1429 TString GetDebugInfo(const TUdpAddress& addr, double timeout) {
1430 NHPTimer::STime start;

Callers

nothing calls this directly

Calls 2

GetAddressAsStringFunction · 0.70
c_strMethod · 0.45

Tested by

no test coverage detected