X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcorenetwork.cpp;h=89afa2cab84d66a8d9f3d6371331c180a9960c87;hp=5fd5ed987b2d9225e86dd52410000212874a5cb5;hb=9f625639006ff07e8f75277e549dc4c204664e3e;hpb=d1328f163faa7c08c627725e20b2f8124c872fac 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