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

Method FailTransfersForConnection

library/cpp/netliba/v12/udp_host.cpp:965–975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

963 }
964
965 void TUdpHost::FailTransfersForConnection(TConnection* connection) {
966 for (TSendTransfers::TIdIterator i = connection->GetSendQueue().Begin(); i != connection->GetSendQueue().End();) {
967 FailedSend(TTransfer(connection, *(i++)));
968 }
969 Y_ASSERT(connection->GetSendQueue().Empty());
970
971 for (TRecvTransfers::TIdIterator i = connection->GetRecvQueue().Begin(); i != connection->GetRecvQueue().End();) {
972 connection->FailedRecvTransfer(*(i++));
973 }
974 Y_ASSERT(connection->GetRecvQueue().Empty());
975 }
976
977 void TUdpHost::SuccessfulSend(const TTransfer& transfer) {
978 CheckedCast<TConnection*>(transfer.Connection.Get())->SuccessfulSendTransfer(transfer.Id);

Callers

nothing calls this directly

Calls 5

FailedRecvTransferMethod · 0.80
TTransferClass · 0.70
BeginMethod · 0.45
EndMethod · 0.45
EmptyMethod · 0.45

Tested by

no test coverage detected