From 50f3ccd3c9630dfc0169973573f5b3729524441c Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 19 Oct 2015 15:03:58 -0700 Subject: . --- node/Peer.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'node') diff --git a/node/Peer.cpp b/node/Peer.cpp index a9d2f671..e0408156 100644 --- a/node/Peer.cpp +++ b/node/Peer.cpp @@ -202,6 +202,8 @@ bool Peer::doPingAndKeepalive(const RuntimeEnvironment *RR,uint64_t now,int inet _natKeepaliveBuf += (uint32_t)((now * 0x9e3779b1) >> 1); // tumble this around to send constantly varying (meaningless) payloads RR->node->putPacket(p->localAddress(),p->address(),&_natKeepaliveBuf,sizeof(_natKeepaliveBuf)); p->sent(now); + } else { + TRACE("no PING or NAT keepalive: %llums/%llums send/receive inactivity",now - p->lastSend(),now - p->lastReceived()) } return true; } -- cgit v1.2.3