Ticket #151 (closed defect: fixed)
Direct connection freeze
| Reported by: | amroth | Owned by: | diederik |
|---|---|---|---|
| Priority: | blocker | Milestone: | kmess-1.5 |
| Component: | Protocol - P2P/DC | Version: | 1.5-pre2 |
| Keywords: | Cc: |
Description
While checking a log file I noticed a large chunk of it was made from the same two messages. There was an error regarding a certain quantity of bytes written to a DC.
Then it went on a freeze until the timeout came and closed the DC.
Here's the log.
kmess: DirectConnectionPool::slotConnectionEstablished() - Direct connection established.
kmess: DirectConnectionPool::slotConnectionEstablished() - Connected to peer IP:PORT
kmess: ApplicationList: Direct connection with 'contact@kmess.org' established.
kmess: P2PApplication::slotConnectionEstablished() - Direct connection established.
kmess: P2PApplication::slotConnectionEstablished() - Waiting for contact to send connection handshake...
kmess: MsnDirectConnection: 4 bytes read, next block size is 4, 4 bytes yet to be read.
kmess: MsnDirectConnection::slotDataReceived: 4 bytes read, 0 bytes remaining.
kmess: MsnDirectConnection::slotDataReceived: received preamble packet, ignoring.
kmess: MsnDirectConnection: 4 bytes read, next block size is 48, 4 bytes yet to be read.
kmess: MsnDirectConnection::slotDataReceived: 48 bytes read, 0 bytes remaining.
kmess: MsnDirectConnection: Emitting message received signal.
kmess: ApplicationList: Received data message from the direct connection link (flags=0x100).
kmess: ApplicationList: Demultiplexing P2P message (Nonce {3BEDB1D6-B351-933E-3BE0-113999A69160} == {3BEDB1D6-B351-933E-3BE0-113999A69160} ?)
kmess: P2PApplication::gotMessage() - Message size=0 total=0 offset=0 contact=contact@kmess.org
kmess: P2PApplication::getUnAckedMessage() - Testing if P2P ACK matches (UniqueID 16239236 == 2470359889 ?) or (UniqueID 16239236 == 1005433302 ?) or (MessageID 11899557 == 1005433302 ?)
kmess: P2PApplication::gotDirectConnectionHandshake() - Got a direct connection handshake message.
kmess: DirectConnectionPool::slotConnectionAuthorized() - A direct connection was authorized.
kmess: ApplicationList: Direct connection with 'contact@kmess.org' authorized.
kmess: P2PApplication::slotConnectionAuthorized() - Direct connection authorized, starting transfer.
kmess: P2PApplication::initiateTransfer() - Signalling implementation class to start the file transfer.
kmess: P2PApplication::sendData() - Begin of data transfer
kmess: ApplicationList::registerDataSendingApplication() - adding application to the list of active outgoing transfers.
kmess: WARNING: ApplicationList::registerDataSendingApplication() - no write handler connected yet.
kmess: P2PApplication::gotDirectConnectionHandshake() - Contact sent correct nonce, sending direct connection handshake ACK.
kmess: P2PApplication::sendDirectConnectionHandshake() - Sending direct connection handshake (nonce={3BEDB1D6-B351-933E-3BE0-113999A69160}).
kmess: P2PApplication::sendDirectConnectionHandshake() - copied nonce '{3BEDB1D6-B351-933E-3BE0-113999A69160}' to p2p message header as 'D6B1ED3B-51B3-3E93-3BE0-113999A69160'.
kmess: MsnDirectConnection: sending message block (size=48, handle=contact@kmess.org)
kmess: P2PApplication::sendDirectConnectionHandshake() - Waiting for direct connection handshake response...
kmess: ApplicationList::slotConnectionReadyWrite() - The direct connection is ready to send more data, notifying applications.
kmess: P2PApplication::sendNextDataParts() - Sending data: offset=0 buffer=371
kmess: MsnDirectConnection: sending message block (size=419, handle=contact@kmess.org)
kmess: P2PApplication::sendP2PMessage() - Storing message fields in queue for ACK response.
kmess: P2PApplication::sendP2PMessage() - Message transmitted (SID=5980896 MID=11899559 UID=1669532 flags=0x20 size=371 type=5)
kmess: Application::showTransferProgress: Transferred 371 bytes.
kmess: WARNING: P2PApplication::sendNextDataParts() - data source is at the end, but offset byte count is not!
kmess: ApplicationList::unregisterDataSendingApplication() - removing application from the list of active outgoing transfers.
kmess: ApplicationList::slotConnectionReadyWrite() - The direct connection is ready to send more data, notifying applications.
kmess: WARNING: 'dataSource_' should not be null in void P2PApplication::sendNextDataParts(), /www/development/kmess/kmess/network/applications/p2papplication.cpp (2939)!
kmess: ApplicationList::slotConnectionReadyWrite() - The direct connection is ready to send more data, notifying applications.
kmess: WARNING: 'dataSource_' should not be null in void P2PApplication::sendNextDataParts(), /www/development/kmess/kmess/network/applications/p2papplication.cpp (2939)!
kmess: ApplicationList::slotConnectionReadyWrite() - The direct connection is ready to send more data, notifying applications.
kmess: WARNING: 'dataSource_' should not be null in void P2PApplication::sendNextDataParts(), /www/development/kmess/kmess/network/applications/p2papplication.cpp (2939)!
kmess: ApplicationList::slotConnectionReadyWrite() - The direct connection is ready to send more data, notifying applications.
kmess: WARNING: 'dataSource_' should not be null in void P2PApplication::sendNextDataParts(), /www/development/kmess/kmess/network/applications/p2papplication.cpp (2939)!
......
kmess: ApplicationList::slotConnectionReadyWrite() - The direct connection is ready to send more data, notifying applications.
kmess: WARNING: 'dataSource_' should not be null in void P2PApplication::sendNextDataParts(), /www/development/kmess/kmess/network/applications/p2papplication.cpp (2939)!
kmess: ApplicationList::slotConnectionReadyWrite() - The direct connection is ready to send more data, notifying applications.
kmess: WARNING: 'dataSource_' should not be null in void P2PApplication::sendNextDataParts(), /www/development/kmess/kmess/network/applications/p2papplication.cpp (2939)!
kmess: P2PApplication::slotCleanup() - timeout fired, cleaning up (waitingState=14).
kmess: MsnDirectConnection: sending message block (size=48, handle=contact@kmess.org)
kmess: P2PApplication::sendP2PMessage() - Message transmitted (SID=5980896 MID=11899561 UID=5637112 flags=0x4 size=0 type=0)
kmess: WARNING: P2PApplication::slotCleanup() - Timeout waiting for DC handshake response (contact=contact@kmess.org).
Change History
Note: See
TracTickets for help on using
tickets.
