Remove UDP congestion mitigation

failbranch
Phil Taylor 2023-02-02 22:53:52 +00:00
rodzic 06c3e33b4d
commit 3993046771
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -429,11 +429,12 @@ void udpBase::sendTrackedPacket(QByteArray d)
udpMutex.lock(); udpMutex.lock();
udp->writeDatagram(d, radioIP, port); udp->writeDatagram(d, radioIP, port);
if (congestion > 10) { // Poor quality connection?
/*if (congestion > 10) { // Poor quality connection?
udp->writeDatagram(d, radioIP, port); udp->writeDatagram(d, radioIP, port);
if (congestion > 20) // Even worse so send again. if (congestion > 20) // Even worse so send again.
udp->writeDatagram(d, radioIP, port); udp->writeDatagram(d, radioIP, port);
} } */
if (idleTimer != Q_NULLPTR && idleTimer->isActive()) { if (idleTimer != Q_NULLPTR && idleTimer->isActive()) {
idleTimer->start(IDLE_PERIOD); // Reset idle counter if it's running idleTimer->start(IDLE_PERIOD); // Reset idle counter if it's running
} }