summaryrefslogtreecommitdiff
path: root/src/DHTGetPeersCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-03-12 15:05:53 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-03-12 15:05:53 +0000
commit4e637779a5ac4fa2c8cb8ba466f2b01d9c1f0bfd (patch)
treefa66ac621b5d8c1bb09244d9024acb9778da7feb /src/DHTGetPeersCommand.cc
parent7d8044ef1033cd20f833d32773fcdcde19583cda (diff)
2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Few adjustment for timeouts in DHT. DHT message timeout is changed from 15 to 10. The interval of PeerLookup is first 5 seconds and it adds another 5 seconds in each retry. * src/DHTConstants.h * src/DHTGetPeersCommand.cc * src/DHTGetPeersCommand.h
Diffstat (limited to 'src/DHTGetPeersCommand.cc')
-rw-r--r--src/DHTGetPeersCommand.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DHTGetPeersCommand.cc b/src/DHTGetPeersCommand.cc
index 8ea2b499..6ac17a1f 100644
--- a/src/DHTGetPeersCommand.cc
+++ b/src/DHTGetPeersCommand.cc
@@ -74,7 +74,7 @@ bool DHTGetPeersCommand::execute()
}
if(_task.isNull() &&
((_numRetry > 0 &&
- _lastGetPeerTime.difference(global::wallclock) >= RETRY_INTERVAL) ||
+ _lastGetPeerTime.difference(global::wallclock) >= (time_t)_numRetry*5) ||
_lastGetPeerTime.difference(global::wallclock) >= GET_PEER_INTERVAL)) {
if(logger->debug()) {
logger->debug("Issuing PeerLookup for infoHash=%s",