summaryrefslogtreecommitdiff
path: root/src/Network/Tox/Crypto/Handlers.hs
diff options
context:
space:
mode:
authorjim@bo <jim@bo>2018-06-24 07:11:13 -0400
committerjim@bo <jim@bo>2018-06-24 07:15:08 -0400
commit5c2c19dfa55f0a319d78411e21fdd0cb5dcc4547 (patch)
tree96a24defb45ef489c5647fbf4a25e53ab57cb1a8 /src/Network/Tox/Crypto/Handlers.hs
parentc781c88c3cd77b70694a26c3f27ff82aa6fa65d3 (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.hs4
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