From 5763d8d9bb77cc516417ad0874ec6c22a29140e6 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Fri, 10 Mar 2017 23:28:34 +0000 Subject: [PATCH] Improve debugging. --- net/Socket.hpp | 2 ++ wsd/DocumentBroker.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/net/Socket.hpp b/net/Socket.hpp index 0cd5c7cfd..88ef16344 100644 --- a/net/Socket.hpp +++ b/net/Socket.hpp @@ -308,6 +308,8 @@ public: rc = ::poll(&_pollFds[0], size + 1, (timeout - now)/1000); } while (rc < 0 && errno == EINTR); + LOG_TRC("Poll completed with " << rc << " live polls " + << ((rc==0) ? "timeout" : "")); // Fire the callback and remove dead fds. Poco::Timestamp newNow; diff --git a/wsd/DocumentBroker.cpp b/wsd/DocumentBroker.cpp index 1369ba590..e9df22776 100644 --- a/wsd/DocumentBroker.cpp +++ b/wsd/DocumentBroker.cpp @@ -1318,6 +1318,7 @@ void DocumentBroker::dumpState() std::cerr << " jailed uri: " << _uriJailed.toString() << "\n"; std::cerr << " doc key: " << _docKey << "\n"; std::cerr << " num sessions: " << getSessionsCount() << "\n"; + std::cerr << " new sessions: " << _newSessions.size() << "\n"; std::cerr << " last editable?: " << _lastEditableSession << "\n"; std::cerr << " cursor " << _cursorPosX << ", " << _cursorPosY << "( " << _cursorWidth << "," << _cursorHeight << ")\n";