mirror of https://github.com/aria2/aria2
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
parent
f4cbc7bb31
commit
423d51c2fe
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue