Browse Source

2010-04-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

	Reverted previous change to DownloadCommand.cc with additional
	commentary.
	* src/DownloadCommand.cc
Tatsuhiro Tsujikawa 15 năm trước cách đây
mục cha
commit
756592bf4d
2 tập tin đã thay đổi với 10 bổ sung0 xóa
  1. 6 0
      ChangeLog
  2. 4 0
      src/DownloadCommand.cc

+ 6 - 0
ChangeLog

@@ -1,3 +1,9 @@
+2010-04-19  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
+
+	Reverted previous change to DownloadCommand.cc with additional
+	commentary.
+	* src/DownloadCommand.cc
+
 2010-04-16  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
 
 	Fixed compile error with openssl 1.1.0 and mingw32.

+ 4 - 0
src/DownloadCommand.cc

@@ -292,6 +292,10 @@ bool DownloadCommand::prepareForNextSegment() {
       // TODO do we need cuttrailinggarbage here?
       e->_checkIntegrityMan->pushEntry(entry);
     }
+    // Following 2lines are needed for DownloadEngine to detect
+    // completed RequestGroups without 1sec delay.
+    e->setNoWait(true);
+    e->setRefreshInterval(0);
 #endif // ENABLE_MESSAGE_DIGEST
     return true;
   } else {