2010-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Make sure that all decoders are finished to pool socket
	* src/HttpDownloadCommand.cc
pull/1/head
Tatsuhiro Tsujikawa 2010-07-16 15:19:46 +00:00
parent 9d5f19d5b1
commit 3886919101
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2010-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Make sure that all decoders are finished to pool socket
* src/HttpDownloadCommand.cc
2010-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed indent of --conditional-get option.

View File

@ -88,10 +88,10 @@ bool HttpDownloadCommand::prepareForNextSegment() {
if(getRequest()->isPipeliningEnabled() ||
(getRequest()->isKeepAliveEnabled() &&
(
// TODO make sure that all decoder is finished to pool socket
((!getTransferEncodingDecoder().isNull() &&
getTransferEncodingDecoder()->finished()) ||
(!getContentEncodingDecoder().isNull() &&
// Make sure that all decoders are finished to pool socket
((getTransferEncodingDecoder().isNull() ||
getTransferEncodingDecoder()->finished()) &&
(getContentEncodingDecoder().isNull() ||
getContentEncodingDecoder()->finished())) ||
getRequestEndOffset() ==
getFileEntry()->gtoloff(getSegments().front()->getPositionToWrite())