From 77740f1a6321027e891604035c7b0dac756ba991 Mon Sep 17 00:00:00 2001 From: Simon Walton Date: Thu, 8 Aug 2019 09:57:00 -0700 Subject: [PATCH] Report no. of packets dropped in checkForReadyReadBackup() --- libraries/networking/src/udt/Socket.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/networking/src/udt/Socket.cpp b/libraries/networking/src/udt/Socket.cpp index 4714160ace..7229fc5955 100644 --- a/libraries/networking/src/udt/Socket.cpp +++ b/libraries/networking/src/udt/Socket.cpp @@ -337,9 +337,12 @@ void Socket::checkForReadyReadBackup() { // drop all of the pending datagrams on the floor + int droppedCount = 0; while (_udpSocket.hasPendingDatagrams()) { _udpSocket.readDatagram(nullptr, 0); + ++droppedCount; } + qCDebug(networking) << "Flushed" << droppedCount << "Packets"; } }