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

Method Resend

library/cpp/netliba/v12/net_acks.cpp:49–58  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 1

CheckThatSideGuidMethod · 0.45

Calls 5

beginMethod · 0.45
endMethod · 0.45
FailureOnSendMethod · 0.45
clearMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected