mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 18:56:55 +02:00
only process cp tail if in the right spot
This commit is contained in:
parent
6c9021c288
commit
56d6d95df9
1 changed files with 12 additions and 10 deletions
|
@ -746,18 +746,20 @@ void Connection::processTimeoutNAK(std::unique_ptr<ControlPacket> controlPacket)
|
||||||
}
|
}
|
||||||
|
|
||||||
void Connection::processProbeTail(std::unique_ptr<ControlPacket> controlPacket) {
|
void Connection::processProbeTail(std::unique_ptr<ControlPacket> controlPacket) {
|
||||||
// this is the second packet in a probe set so we can estimate bandwidth
|
if (((uint32_t) _lastReceivedSequenceNumber & 0xF) == 0) {
|
||||||
// the sender sent this to us in lieu of sending new data (because they didn't have any)
|
// this is the second packet in a probe set so we can estimate bandwidth
|
||||||
|
// the sender sent this to us in lieu of sending new data (because they didn't have any)
|
||||||
|
|
||||||
#ifdef UDT_CONNECTION_DEBUG
|
#ifdef UDT_CONNECTION_DEBUG
|
||||||
qCDebug(networking) << "Processing second packet of probe from control packet instead of data packet";
|
qCDebug(networking) << "Processing second packet of probe from control packet instead of data packet";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
_receiveWindow.onProbePair2Arrival();
|
_receiveWindow.onProbePair2Arrival();
|
||||||
|
|
||||||
// mark that we processed a control packet for the second in the pair and we should not mark
|
// mark that we processed a control packet for the second in the pair and we should not mark
|
||||||
// the next data packet received
|
// the next data packet received
|
||||||
_receivedControlProbeTail = true;
|
_receivedControlProbeTail = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Connection::resetReceiveState() {
|
void Connection::resetReceiveState() {
|
||||||
|
|
Loading…
Reference in a new issue