More retransmit fixes

merge-requests/9/merge
Phil Taylor 2022-01-27 23:12:07 +00:00
rodzic 3d1e04c556
commit d29c1ddba7
2 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -1327,6 +1327,9 @@ void udpBase::sendRetransmitRequest()
{
// Find all gaps in received packets and then send requests for them.
// This will run every 100ms so out-of-sequence packets will not trigger a retransmit request.
if (rxMissing.isEmpty()) {
return;
}
QByteArray missingSeqs;

Wyświetl plik

@ -1693,7 +1693,12 @@ void udpServer::sendRetransmitRequest(CLIENT* c)
// Find all gaps in received packets and then send requests for them.
// This will run every 100ms so out-of-sequence packets will not trigger a retransmit request.
if (c->rxMissing.isEmpty()) {
return;
}
QByteArray missingSeqs;
QTime missingTime = QTime::currentTime();
if (c->missMutex.try_lock_for(std::chrono::milliseconds(LOCK_PERIOD)))
@ -1714,8 +1719,6 @@ void udpServer::sendRetransmitRequest(CLIENT* c)
qDebug(logUdp()) << this->metaObject()->className() << ": No response for missing packet" << it.key() << "deleting";
it = c->rxMissing.erase(it);
}
}
if (missingSeqs.length() != 0)