mirror of https://github.com/aria2/aria2
2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Updated doc. * src/DownloadCommand.ccpull/1/head
parent
4db349c1f3
commit
f6a3ca0b1e
|
@ -1,3 +1,8 @@
|
|||
2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Updated doc.
|
||||
* src/DownloadCommand.cc
|
||||
|
||||
2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Untabify. Fixed one line in copyright which is longer than 80
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue