mirror of https://github.com/aria2/aria2
Set server status error on network failure
parent
295affe160
commit
a1ce6d2e7f
|
@ -304,6 +304,11 @@ bool AbstractCommand::execute()
|
|||
}
|
||||
|
||||
if (errorEventEnabled()) {
|
||||
// older kernel may report "connection refused" here.
|
||||
auto ss = e_->getRequestGroupMan()->getOrCreateServerStat(
|
||||
req_->getHost(), req_->getProtocol());
|
||||
ss->setError();
|
||||
|
||||
throw DL_RETRY_EX(
|
||||
fmt(MSG_NETWORK_PROBLEM, socket_->getSocketError().c_str()));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue