2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker 
request
	attempt is failed, then 2nd attempt get kicked out more quickly.
	And it is now static const member of DefaultBtAnnounce.
	* src/DefaultBtAnnounce.h
pull/1/head
Tatsuhiro Tsujikawa 2008-06-05 13:21:35 +00:00
parent d773613e93
commit 74d35644fb
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
attempt is failed, then 2nd attempt get kicked out more quickly.
And it is now static const member of DefaultBtAnnounce.
* src/DefaultBtAnnounce.h
2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.

View File

@ -41,8 +41,6 @@
namespace aria2 { namespace aria2 {
#define DEFAULT_ANNOUNCE_INTERVAL 1800
class BtContext; class BtContext;
class Option; class Option;
class Logger; class Logger;
@ -69,6 +67,9 @@ private:
SharedHandle<BtRuntime> btRuntime; SharedHandle<BtRuntime> btRuntime;
SharedHandle<PieceStorage> pieceStorage; SharedHandle<PieceStorage> pieceStorage;
SharedHandle<PeerStorage> peerStorage; SharedHandle<PeerStorage> peerStorage;
static const unsigned int DEFAULT_ANNOUNCE_INTERVAL = 120;
public: public:
DefaultBtAnnounce(const SharedHandle<BtContext>& btContext, DefaultBtAnnounce(const SharedHandle<BtContext>& btContext,
const Option* option); const Option* option);