mirror of https://github.com/aria2/aria2
Fix busy loop when upload rate limit hits
parent
ae6067d2a9
commit
887f7a6b90
|
@ -360,8 +360,12 @@ bool PeerInteractionCommand::executeInternal()
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (btInteractive_->countPendingMessage() > 0 ||
|
||||
btInteractive_->isSendingMessageInProgress()) {
|
||||
if ((btInteractive_->countPendingMessage() > 0 ||
|
||||
btInteractive_->isSendingMessageInProgress()) &&
|
||||
!getDownloadEngine()
|
||||
->getRequestGroupMan()
|
||||
->doesOverallUploadSpeedExceed() &&
|
||||
!requestGroup_->doesUploadSpeedExceed()) {
|
||||
setWriteCheckSocket(getSocket());
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue