diff options
Diffstat (limited to 'dht/src/Network/Tox/TCP.hs')
-rw-r--r-- | dht/src/Network/Tox/TCP.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dht/src/Network/Tox/TCP.hs b/dht/src/Network/Tox/TCP.hs index d0d67f25..e80a22d1 100644 --- a/dht/src/Network/Tox/TCP.hs +++ b/dht/src/Network/Tox/TCP.hs | |||
@@ -229,7 +229,7 @@ getUDPNodes' tcp seeking dst0 = do | |||
229 | AnnounceRequest | 229 | AnnounceRequest |
230 | (Either String AnnounceResponse) | 230 | (Either String AnnounceResponse) |
231 | meth = MethodSerializer | 231 | meth = MethodSerializer |
232 | { methodTimeout = \tid addr -> return (addr,12000000) -- 12 second timeout | 232 | { methodTimeout = \addr -> return (addr,12000000) -- 12 second timeout |
233 | , method = OnionPacketID -- meth | 233 | , method = OnionPacketID -- meth |
234 | , wrapQuery = \n8 src gateway x -> (,) True $ | 234 | , wrapQuery = \n8 src gateway x -> (,) True $ |
235 | OnionPacket n24 $ Addressed (UDP.nodeAddr dst) | 235 | OnionPacket n24 $ Addressed (UDP.nodeAddr dst) |
@@ -269,7 +269,7 @@ tcpPing client dst = do | |||
269 | where meth = MethodSerializer | 269 | where meth = MethodSerializer |
270 | { wrapQuery = \n8 src dst () -> (True,RelayPing n8) | 270 | { wrapQuery = \n8 src dst () -> (True,RelayPing n8) |
271 | , unwrapResponse = \_ -> () | 271 | , unwrapResponse = \_ -> () |
272 | , methodTimeout = \n8 dst -> return (dst,5000000) | 272 | , methodTimeout = \dst -> return (dst,5000000) |
273 | , method = PingPacket | 273 | , method = PingPacket |
274 | } | 274 | } |
275 | 275 | ||