summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-19 15:03:58 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-19 15:03:58 -0700
commit50f3ccd3c9630dfc0169973573f5b3729524441c (patch)
tree3142e4f90fc992b4d8ac927c3a3e425faa923cc0 /node
parent584072fa6a86b7cca0a708d7dd4c302aa444f2b6 (diff)
downloadinfinitytier-50f3ccd3c9630dfc0169973573f5b3729524441c.tar.gz
infinitytier-50f3ccd3c9630dfc0169973573f5b3729524441c.zip
.
Diffstat (limited to 'node')
-rw-r--r--node/Peer.cpp2
1 files changed, 2 insertions, 0 deletions
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;
}