mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 08:14:15 +00:00
count NACKs in plain ack message size
This commit is contained in:
parent
95027930f2
commit
5e83d950f5
@ -320,7 +320,7 @@ namespace stream
|
|||||||
packets.push_back (p);
|
packets.push_back (p);
|
||||||
}
|
}
|
||||||
if (packets.size () > 0)
|
if (packets.size () > 0)
|
||||||
m_Service.post (std::bind (&Stream::PostPackets, this, packets));
|
m_Service.post (std::bind (&Stream::PostPackets, shared_from_this (), packets));
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -369,7 +369,7 @@ namespace stream
|
|||||||
}
|
}
|
||||||
packet[size] = numNacks;
|
packet[size] = numNacks;
|
||||||
size++; // NACK count
|
size++; // NACK count
|
||||||
packet += numNacks*4; // NACKs
|
size += numNacks*4; // NACKs
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user