Selaa lähdekoodia

2010-09-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

	Don't set error in ServerStat just because resource is not
	there. We can still use the server for other resources.
	* src/AbstractCommand.cc
Tatsuhiro Tsujikawa 15 vuotta sitten
vanhempi
commit
1d2080361d
2 muutettua tiedostoa jossa 6 lisäystä ja 3 poistoa
  1. 6 0
      ChangeLog
  2. 0 3
      src/AbstractCommand.cc

+ 6 - 0
ChangeLog

@@ -1,3 +1,9 @@
+2010-09-15  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
+
+	Don't set error in ServerStat just because resource is not
+	there. We can still use the server for other resources.
+	* src/AbstractCommand.cc
+
 2010-09-15  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
 
 	Disabled --dry-run in multi-file download for now.

+ 0 - 3
src/AbstractCommand.cc

@@ -392,9 +392,6 @@ bool AbstractCommand::prepareForRetry(time_t wait) {
 
 void AbstractCommand::onAbort() {
   if(!req_.isNull()) {
-    // TODO This might be a problem if the failure is caused by proxy.
-    e_->getRequestGroupMan()->getOrCreateServerStat
-      (req_->getHost(), req_->getProtocol())->setError();
     fileEntry_->removeIdenticalURI(req_->getUri());
     fileEntry_->removeRequest(req_);
   }