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

Method Resend

library/cpp/netliba/v6/net_acks.cpp:53–62  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

51
52 //////////////////////////////////////////////////////////////////////////
53 void TAckTracker::Resend() {
54 CurrentPacket = 0;
55 for (TPacketHash::const_iterator i = PacketsInFly.begin(); i != PacketsInFly.end(); ++i)
56 Congestion->Failure(); // not actually correct but simplifies logic a lot
57 PacketsInFly.clear();
58 DroppedPackets.clear();
59 ResendQueue.clear();
60 for (size_t i = 0; i < AckReceived.size(); ++i)
61 AckReceived[i] = false;
62 }
63
64 int TAckTracker::SelectPacket() {
65 if (!ResendQueue.empty()) {

Callers 1

RecvCycleMethod · 0.45

Calls 5

beginMethod · 0.45
endMethod · 0.45
FailureMethod · 0.45
clearMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected