diff --git a/libraries/networking/src/NodeList.cpp b/libraries/networking/src/NodeList.cpp index 038d656dbb..3a896afe9b 100644 --- a/libraries/networking/src/NodeList.cpp +++ b/libraries/networking/src/NodeList.cpp @@ -673,6 +673,13 @@ void NodeList::processDomainServerList(QSharedPointer message) // refuse to process this packet if we aren't currently connected to the DS return; } +#ifdef DEBUG_EVENT_QUEUE + { + int nodeListQueueSize = ::hifi::qt::getEventQueueSize(thread()); + qCDebug(networking) << "DomainList received, pending count =" << _domainHandler.getCheckInPacketsSinceLastReply() + << "NodeList thread event queue size =" << nodeListQueueSize; + } +#endif // warn if ping lag is getting long if (pingLagTime > qint64(MSECS_PER_SECOND)) { diff --git a/libraries/networking/src/udt/Socket.cpp b/libraries/networking/src/udt/Socket.cpp index 6f93281b2a..2130d5bc6f 100644 --- a/libraries/networking/src/udt/Socket.cpp +++ b/libraries/networking/src/udt/Socket.cpp @@ -334,7 +334,11 @@ void Socket::readPendingDatagrams() { if (system_clock::now() > abortTime) { // We've been running for too long, stop processing packets for now // Once we've processed the event queue, we'll come back to packet processing - qCDebug(networking) << "Socket::readPendingDatagrams() running too long, aborting to process event queue"; +#ifdef DEBUG_EVENT_QUEUE + int nodeListQueueSize = ::hifi::qt::getEventQueueSize(thread()); + qCDebug(networking) << "Overran timebox by" << duration_cast(system_clock::now() - abortTime).count() + << "ms; NodeList thread event queue size =" << nodeListQueueSize; +#endif break; }