mirror of https://github.com/aria2/aria2
2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Run DefaultBtMessageDispatcher:: checkRequestSlotAndDoNecessaryThing() in every 1 sec. The timeout of RequestSlot is 60s by default and it doesn't need to be called every time when DefaultBtInteractive::doInteractionProcessing() is called. * src/DefaultBtInteractive.cc * src/DefaultBtInteractive.hpull/1/head
parent
ce1231280a
commit
a69f499ccf
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
||||||
|
2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Run
|
||||||
|
DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
|
||||||
|
in every 1 sec. The timeout of RequestSlot is 60s by default and
|
||||||
|
it doesn't need to be called every time when
|
||||||
|
DefaultBtInteractive::doInteractionProcessing() is called.
|
||||||
|
* src/DefaultBtInteractive.cc
|
||||||
|
* src/DefaultBtInteractive.h
|
||||||
|
|
||||||
2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Documented 'falloc' in man page.
|
Documented 'falloc' in man page.
|
||||||
|
|
|
@ -438,8 +438,10 @@ void DefaultBtInteractive::doInteractionProcessing() {
|
||||||
|
|
||||||
detectMessageFlooding();
|
detectMessageFlooding();
|
||||||
|
|
||||||
dispatcher->checkRequestSlotAndDoNecessaryThing();
|
if(_perSecCheckPoint.elapsed(1)) {
|
||||||
|
_perSecCheckPoint.reset();
|
||||||
|
dispatcher->checkRequestSlotAndDoNecessaryThing();
|
||||||
|
}
|
||||||
checkHave();
|
checkHave();
|
||||||
|
|
||||||
sendKeepAlive();
|
sendKeepAlive();
|
||||||
|
|
|
@ -123,6 +123,7 @@ private:
|
||||||
FloodingStat floodingStat;
|
FloodingStat floodingStat;
|
||||||
Time inactiveCheckPoint;
|
Time inactiveCheckPoint;
|
||||||
Time _pexCheckPoint;
|
Time _pexCheckPoint;
|
||||||
|
Time _perSecCheckPoint;
|
||||||
time_t keepAliveInterval;
|
time_t keepAliveInterval;
|
||||||
bool _utPexEnabled;
|
bool _utPexEnabled;
|
||||||
bool _dhtEnabled;
|
bool _dhtEnabled;
|
||||||
|
|
Loading…
Reference in New Issue