diff options
author | jim@bo <jim@bo> | 2018-06-24 07:11:13 -0400 |
---|---|---|
committer | jim@bo <jim@bo> | 2018-06-24 07:15:08 -0400 |
commit | 5c2c19dfa55f0a319d78411e21fdd0cb5dcc4547 (patch) | |
tree | 96a24defb45ef489c5647fbf4a25e53ab57cb1a8 /src/Network/Tox/Crypto/Handlers.hs | |
parent | c781c88c3cd77b70694a26c3f27ff82aa6fa65d3 (diff) |
debug traces of packet request send/recieve
Diffstat (limited to 'src/Network/Tox/Crypto/Handlers.hs')
-rw-r--r-- | src/Network/Tox/Crypto/Handlers.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Network/Tox/Crypto/Handlers.hs b/src/Network/Tox/Crypto/Handlers.hs index 82aa8f12..2e00d61b 100644 --- a/src/Network/Tox/Crypto/Handlers.hs +++ b/src/Network/Tox/Crypto/Handlers.hs | |||
@@ -1133,7 +1133,9 @@ sessionPacketH sessions addrRaw (CryptoPacket nonce16 encrypted) = do | |||
1133 | else do dput XNetCrypto $ "enqueue ncPacketQueue Lossless " ++ show cm | 1133 | else do dput XNetCrypto $ "enqueue ncPacketQueue Lossless " ++ show cm |
1134 | when (msgID cm == PING) $ | 1134 | when (msgID cm == PING) $ |
1135 | dput XNetCrypto $ "NetCrypto Recieved PING (session " ++ show ncSessionId ++")" | 1135 | dput XNetCrypto $ "NetCrypto Recieved PING (session " ++ show ncSessionId ++")" |
1136 | when (msgID cm == PacketRequest) . atomically $ do | 1136 | when (msgID cm == PacketRequest) $ do |
1137 | dput XNetCrypto $ "PACKETREquest: " ++ showCryptoMsg bufferEnd cm | ||
1138 | atomically $ do | ||
1137 | num <- CB.getNextSequenceNum ncStoredRequests | 1139 | num <- CB.getNextSequenceNum ncStoredRequests |
1138 | CB.enqueue ncStoredRequests num cd | 1140 | CB.enqueue ncStoredRequests num cd |
1139 | atomically $ PQ.enqueue ncPacketQueue bufferEnd cd | 1141 | atomically $ PQ.enqueue ncPacketQueue bufferEnd cd |