mirror of
https://github.com/aria2/aria2.git
synced 2025-02-26 08:22:11 +00:00
Decide interest and choking after receiving messages
This commit is contained in:
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
Block a user