summaryrefslogtreecommitdiff
path: root/node/Peer.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-27 18:18:26 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-27 18:18:26 -0700
commitcdc99bfee10ac58a8dab1aabcb85e69f3862b7ad (patch)
tree82b3a8996b48c101b749ad3fcf59302ba7a3e416 /node/Peer.cpp
parent88b100e5d0db5df16622fa48899cf652e09b3e91 (diff)
downloadinfinitytier-cdc99bfee10ac58a8dab1aabcb85e69f3862b7ad.tar.gz
infinitytier-cdc99bfee10ac58a8dab1aabcb85e69f3862b7ad.zip
Add a circuit breaker for VERB_PUSH_DIRECT_PATHS.
Diffstat (limited to 'node/Peer.cpp')
-rw-r--r--node/Peer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp
index 99eb32c7..976c7c44 100644
--- a/node/Peer.cpp
+++ b/node/Peer.cpp
@@ -55,6 +55,7 @@ Peer::Peer(const Identity &myIdentity,const Identity &peerIdentity)
_lastAnnouncedTo(0),
_lastPathConfirmationSent(0),
_lastDirectPathPushSent(0),
+ _lastDirectPathPushReceive(0),
_lastPathSort(0),
_vProto(0),
_vMajor(0),
@@ -63,6 +64,7 @@ Peer::Peer(const Identity &myIdentity,const Identity &peerIdentity)
_id(peerIdentity),
_numPaths(0),
_latency(0),
+ _directPathPushCutoffCount(0),
_networkComs(4),
_lastPushedComs(4)
{