mirror of https://github.com/aria2/aria2
Decide interest and choking after receiving messages
parent
c4cf8fa61d
commit
4d27668d7c
|
@ -563,17 +563,17 @@ void DefaultBtInteractive::doInteractionProcessing()
|
|||
}
|
||||
else {
|
||||
checkActiveInteraction();
|
||||
decideChoking();
|
||||
detectMessageFlooding();
|
||||
if (perSecTimer_.difference(global::wallclock()) >= 1_s) {
|
||||
perSecTimer_ = global::wallclock();
|
||||
dispatcher_->checkRequestSlotAndDoNecessaryThing();
|
||||
}
|
||||
numReceivedMessage_ = receiveMessages();
|
||||
detectMessageFlooding();
|
||||
decideChoking();
|
||||
decideInterest();
|
||||
checkHave();
|
||||
sendKeepAlive();
|
||||
numReceivedMessage_ = receiveMessages();
|
||||
btRequestFactory_->removeCompletedPiece();
|
||||
decideInterest();
|
||||
if (!pieceStorage_->downloadFinished()) {
|
||||
addRequests();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue