More retransmit debugging

merge-requests/9/merge
Phil Taylor 2022-05-05 01:49:21 +01:00
rodzic 4b19ed522f
commit 7b5f29f4fe
2 zmienionych plików z 12 dodań i 3 usunięć

Wyświetl plik

@ -1421,7 +1421,8 @@ void udpBase::sendRetransmitRequest()
missingMutex.lock();
for (auto it = rxMissing.begin(); it != rxMissing.end(); ++it)
{
if (it.key() != NULL) {
if (it.key() != 0x0)
{
if (it.value() < 4)
{
missingSeqs.append(it.key() & 0xff);
@ -1429,11 +1430,15 @@ void udpBase::sendRetransmitRequest()
missingSeqs.append(it.key() & 0xff);
missingSeqs.append(it.key() >> 8 & 0xff);
it.value()++;
it++;
}
else {
qInfo(logUdp()) << this->metaObject()->className() << ": No response for missing packet" << it.key() << "deleting";
it = rxMissing.erase(it);
}
}
} else {
qInfo(logUdp()) << this->metaObject()->className() << ": found empty key in missing buffer";
it++;
}
}
missingMutex.unlock();

Wyświetl plik

@ -1715,7 +1715,7 @@ void udpServer::sendRetransmitRequest(CLIENT* c)
{
for (auto it = c->rxMissing.begin(); it != c->rxMissing.end(); ++it)
{
if (it.key() != NULL)
if (it.key() != 0x00)
{
if (it.value() < 4)
{
@ -1724,6 +1724,7 @@ void udpServer::sendRetransmitRequest(CLIENT* c)
missingSeqs.append(it.key() & 0xff);
missingSeqs.append(it.key() >> 8 & 0xff);
it.value()++;
it++;
}
else {
@ -1731,6 +1732,9 @@ void udpServer::sendRetransmitRequest(CLIENT* c)
qInfo(logUdp()) << this->metaObject()->className() << ": No response for missing packet" << it.key() << "deleting";
it = c->rxMissing.erase(it);
}
} else {
qInfo(logUdp()) << this->metaObject()->className() << ": found empty key in missing buffer";
it++;
}
}