From dbc2a677587781445c7cc2f3c889e718f266f61f Mon Sep 17 00:00:00 2001 From: Simon Walton Date: Fri, 9 Aug 2019 09:46:09 -0700 Subject: [PATCH] Log event-queue size on readRead timeout --- libraries/networking/src/udt/Socket.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/networking/src/udt/Socket.cpp b/libraries/networking/src/udt/Socket.cpp index 7229fc5955..c25075171b 100644 --- a/libraries/networking/src/udt/Socket.cpp +++ b/libraries/networking/src/udt/Socket.cpp @@ -334,7 +334,9 @@ void Socket::checkForReadyReadBackup() { qCDebug(networking) << "Socket::checkForReadyReadyBackup() last sequence number" << (uint32_t) _lastReceivedSequenceNumber << "from" << _lastPacketSockAddr << "-" << _lastPacketSizeRead << "bytes"; - +#ifdef DEBUG_EVENT_QUEUE + qCDebug(networking) << "NodeList event queue size:" << ::hifi::qt::getEventQueueSize(thread()); +#endif // drop all of the pending datagrams on the floor int droppedCount = 0;