From 76da855725b5e75e6e580fbffeac533f303401f9 Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Fri, 28 Jun 2024 17:10:40 +0200 Subject: [PATCH] use handshakeTimeout if handshake starting in sendMessage Signed-off-by: Csaba Kiraly --- codexdht/private/eth/p2p/discoveryv5/transport.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codexdht/private/eth/p2p/discoveryv5/transport.nim b/codexdht/private/eth/p2p/discoveryv5/transport.nim index 418b593..18a67bc 100644 --- a/codexdht/private/eth/p2p/discoveryv5/transport.nim +++ b/codexdht/private/eth/p2p/discoveryv5/transport.nim @@ -93,7 +93,7 @@ proc sendMessage*(t: Transport, toNode: Node, message: seq[byte]) = t.send(toNode, data) t.keyexchangeInProgress.incl(toNode.id) trace "keyexchangeInProgress added", myport = t.bindAddress.port , dstId = toNode - sleepAsync(responseTimeout).addCallback() do(data: pointer): + sleepAsync(handshakeTimeout).addCallback() do(data: pointer): t.keyexchangeInProgress.excl(toNode.id) trace "keyexchangeInProgress removed (timeout)", myport = t.bindAddress.port , dstId = toNode else: