mirror of
https://github.com/overte-org/overte.git
synced 2025-08-16 07:52:13 +02:00
correct sizeof ACK_PACKET_PAYLOAD_BYTES in Connection
This commit is contained in:
parent
d2c5e79ac2
commit
75765d02e4
1 changed files with 2 additions and 1 deletions
|
@ -30,7 +30,8 @@ void Connection::send(std::unique_ptr<Packet> packet) {
|
|||
}
|
||||
|
||||
void Connection::sendACK(bool wasCausedBySyncTimeout) {
|
||||
static const int ACK_PACKET_PAYLOAD_BYTES = sizeof(SeqNum);
|
||||
static const int ACK_PACKET_PAYLOAD_BYTES = sizeof(_lastSentACK) + sizeof(_currentACKSubSequenceNumber)
|
||||
+ sizeof(_rtt) + sizeof(_rttVariance) + sizeof(int32_t) + sizeof(int32_t);
|
||||
|
||||
// setup the ACK packet, make it static so we can re-use it
|
||||
static auto ackPacket = ControlPacket::create(ControlPacket::ACK, ACK_PACKET_PAYLOAD_BYTES);
|
||||
|
|
Loading…
Reference in a new issue