more debug output

This commit is contained in:
Christian Ulrich 2020-11-18 18:24:19 +01:00
parent b91f8ab2e5
commit debd8247b8
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
1 changed files with 2 additions and 0 deletions

View File

@ -101,6 +101,8 @@ proc handleMsg*(puncher: Puncher, msg: string, peerIp: IpAddress,
echo &"handling QUIC message from {peerIp}:{peerPort}" echo &"handling QUIC message from {peerIp}:{peerPort}"
puncher.attempts[i].future.complete(peerPort) puncher.attempts[i].future.complete(peerPort)
puncher.attempts.del(i) puncher.attempts.del(i)
else:
echo &"received unexpected packet from {peerIp}:{peerPort}"
proc handleMsg*(puncher: Puncher, msg: string, proc handleMsg*(puncher: Puncher, msg: string,
peerAddr: SockAddr | Sockaddr_storage, peerSockLen: SockLen) = peerAddr: SockAddr | Sockaddr_storage, peerSockLen: SockLen) =