Przeglądaj źródła

2010-01-06 Tatsuhiro Tsujikawa <[email protected]>

	Updated doc.
	* src/DownloadCommand.cc
Tatsuhiro Tsujikawa 16 lat temu
rodzic
commit
f6a3ca0b1e
2 zmienionych plików z 8 dodań i 1 usunięć
  1. 5 0
      ChangeLog
  2. 3 1
      src/DownloadCommand.cc

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2010-01-06  Tatsuhiro Tsujikawa  <[email protected]>
+
+	Updated doc.
+	* src/DownloadCommand.cc
+
 2010-01-06  Tatsuhiro Tsujikawa  <[email protected]>
 
 	Untabify. Fixed one line in copyright which is longer than 80

+ 3 - 1
src/DownloadCommand.cc

@@ -183,6 +183,8 @@ bool DownloadCommand::executeInternal() {
     }
   } else if(!_transferEncodingDecoder.isNull() &&
             (segment->complete() || segment->getPositionToWrite() == _fileEntry->getLastOffset())) {
+    // In this case, transferEncodingDecoder is used and
+    // Content-Length is known.
     segmentPartComplete = true;
   } else if((_transferEncodingDecoder.isNull() ||
              _transferEncodingDecoder->finished()) &&
@@ -230,7 +232,7 @@ bool DownloadCommand::executeInternal() {
       _requestGroup->getSegmentMan()->completeSegment(cuid, segment);
 #endif // !ENABLE_MESSAGE_DIGEST
     } else {
-      // If segment is not cacnel here, in the next pipelining
+      // If segment is not canceled here, in the next pipelining
       // request, aria2 requests bad range
       // [FileEntry->getLastOffset(), FileEntry->getLastOffset())
       _requestGroup->getSegmentMan()->cancelSegment(cuid, segment);