From: Marcus Eggenberger Date: Mon, 16 Mar 2009 12:24:32 +0000 (+0100) Subject: Debug output for ping timeout issues. X-Git-Tag: 0.5-rc1~261 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=9f625639006ff07e8f75277e549dc4c204664e3e Debug output for ping timeout issues. If you experience ping timeout issues, please start your core with --loglevel=Debug option to enable debug output. --- diff --git a/src/core/corenetwork.cpp b/src/core/corenetwork.cpp index 5fd5ed98..89afa2ca 100644 --- a/src/core/corenetwork.cpp +++ b/src/core/corenetwork.cpp @@ -525,6 +525,10 @@ void CoreNetwork::doAutoReconnect() { void CoreNetwork::sendPing() { uint now = QDateTime::currentDateTime().toTime_t(); + if(_pingCount != 0) { + qDebug() << "UserId:" << userId() << "Network:" << networkName() << "missed" << _pingCount << "pings." + << "BA:" << socket.bytesAvailable() << "BTW:" << socket.bytesToWrite(); + } if(_pingCount >= _maxPingCount && now - _lastPingTime <= (uint)(_pingTimer.interval() / 1000) + 1) { // the second check compares the actual elapsed time since the last ping and the pingTimer interval // if the interval is shorter then the actual elapsed time it means that this thread was somehow blocked