mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 08:14:15 +00:00
streaming log tweaks and dont set RTT to 0
This commit is contained in:
parent
61fe2923e4
commit
59797a5c9a
@ -272,11 +272,11 @@ namespace stream
|
|||||||
if(ts < sentPacket->sendTime)
|
if(ts < sentPacket->sendTime)
|
||||||
{
|
{
|
||||||
LogPrint(eLogError, "Streaming: Packet ", seqn, "sent from the future, sendTime=", sentPacket->sendTime);
|
LogPrint(eLogError, "Streaming: Packet ", seqn, "sent from the future, sendTime=", sentPacket->sendTime);
|
||||||
rtt = 0;
|
rtt = 1;
|
||||||
}
|
}
|
||||||
m_RTT = (m_RTT*seqn + rtt)/(seqn + 1);
|
m_RTT = (m_RTT*seqn + rtt)/(seqn + 1);
|
||||||
m_RTO = m_RTT*1.5; // TODO: implement it better
|
m_RTO = m_RTT*1.5; // TODO: implement it better
|
||||||
LogPrint (eLogDebug, "Streaming: Packet ", seqn, " acknowledged rtt=", rtt);
|
LogPrint (eLogDebug, "Streaming: Packet ", seqn, " acknowledged rtt=", rtt, " sentTime=", sentPacket->sendTime);
|
||||||
m_SentPackets.erase (it++);
|
m_SentPackets.erase (it++);
|
||||||
delete sentPacket;
|
delete sentPacket;
|
||||||
acknowledged = true;
|
acknowledged = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user