Restart slow connections

Restart connection on low speed dropout.

Before this pr the number of open connections to a server will slowly decrease until there are none left.
After this pr aria2c will restart all connections that were slower than the limit and therefore terminated.
pull/1713/head
Klaus Frank 2020-11-23 22:49:43 +01:00 committed by Linux User
parent f4cbc7bb31
commit 423d51c2fe
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ void DownloadCommand::checkLowestDownloadSpeed() const
startupIdleTime_) {
int nowSpeed = peerStat_->calculateDownloadSpeed();
if (nowSpeed <= lowestDownloadSpeedLimit_) {
throw DL_ABORT_EX2(fmt(EX_TOO_SLOW_DOWNLOAD_SPEED, nowSpeed,
throw DL_RETRY_EX2(fmt(EX_TOO_SLOW_DOWNLOAD_SPEED, nowSpeed,
lowestDownloadSpeedLimit_,
getRequest()->getHost().c_str()),
error_code::TOO_SLOW_DOWNLOAD_SPEED);