| 1206 | } |
| 1207 | |
| 1208 | TString TUdpHost::GetPeerLinkDebug(const TPeerLinkHash& ch) { |
| 1209 | TString res; |
| 1210 | char buf[1000]; |
| 1211 | for (const auto& i : ch) { |
| 1212 | const TUdpAddress& ip = i.first; |
| 1213 | const TCongestionControl& cc = *i.second.UdpCongestion; |
| 1214 | IIBPeer* ibPeer = i.second.IBPeer.Get(); |
| 1215 | snprintf(buf, sizeof(buf), "%s\tIB: %d, RTT: %g Timeout: %g Window: %g MaxWin: %g FailRate: %g TimeSinceLastRecv: %g Transfers: %d MTU: %d\n", |
| 1216 | GetAddressAsString(ip).c_str(), |
| 1217 | ibPeer ? ibPeer->GetState() : -1, |
| 1218 | cc.GetRTT() * 1000, cc.GetTimeout() * 1000, cc.GetWindow(), cc.GetMaxWindow(), cc.GetFailRate(), |
| 1219 | cc.GetTimeSinceLastRecv() * 1000, cc.GetTransferCount(), cc.GetMTU()); |
| 1220 | res += buf; |
| 1221 | } |
| 1222 | return res; |
| 1223 | } |
| 1224 | |
| 1225 | TString TUdpHost::GetDebugInfo() { |
| 1226 | TString res; |
nothing calls this directly
no test coverage detected